Opened 11 years ago
Closed 10 years ago
#5203 closed defect (bug)
BP Notice in Theme Customizer
Reported by: | ericlewis | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.5 |
Component: | Administration | Keywords: | |
Cc: |
Description
BuddyPress throws a notice within the theme customizer screen in the admin.
BuddyPress seems to think here that WordPress core is jumping the gun on setting up the current user. This goes back to r6765. I'd like to hear more specifics about roles/caps issues that could come from this, are there any peculiarities specific to BP that would be caused by this? WP core seems to have no problem issuing current_user_can() checks pre-after_setup_theme - in the customizer, these checks are hit on the setup_theme hook.
Attachments (1)
Change History (7)
#2
@
11 years ago
- Resolution set to duplicate
- Status changed from new to closed
Duplicate of #WP24169
#4
@
10 years ago
- Milestone set to Future Release
- Resolution duplicate deleted
- Status changed from closed to reopened
- Version changed from 1.8.1 to 1.5
This was never fixed; it doesn't look like it was looked at much.
Simple solution here would be to change the hook checked in bp_setup_current_user() to 'setup_theme,' which fires directly after the global $wp_roles is declared. I don't see anything that happens between 'setup_theme' and 'after_setup_theme' that would affect roles or caps.