[wp-trac] [WordPress Trac] #24169: WP_Customize_Manager loads the current user too early
WordPress Trac
noreply at wordpress.org
Wed Apr 24 17:48:35 UTC 2013
#24169: WP_Customize_Manager loads the current user too early
-----------------------------+------------------
Reporter: johnjamesjacoby | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Themes | Version: 3.4
Severity: major | Resolution:
Keywords: has-patch |
-----------------------------+------------------
Comment (by johnjamesjacoby):
Replying to [comment:2 nacin]:
> Could you explain a bit more what the issues are?
The issues are two fold, like you've mentioned:
* Per-user language settings can't load the correct locale
* The user is loaded before either themes' functions.php can be loaded,
resulting in actions hooked to 'set_current_user' (for example) not
executing, because the load order is reversed.
''For context, #BB2309 is referencing a _doing_it_wrong() that was added
to the current versions of bbPress/BuddyPress; it alerts site admins when
'set_current_user' is fired before 'after_setup_theme'.''
''When this happens, sites run the risk of critical on-the-fly procedures
being skipped, like mapped roles and capabilities, causing a myriad of
potential, difficult to debug, issues (related to #23016.)'''
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24169#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list