[wp-trac] [WordPress Trac] #43869: Do not initialize current user too early in `get_user_locale()`
WordPress Trac
noreply at wordpress.org
Sun Sep 23 15:33:44 UTC 2018
#43869: Do not initialize current user too early in `get_user_locale()`
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.9.9
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Comment (by tazotodua):
At this moment, i use this as a "temporary solution" (according to my
above post):
{{{add_action('set_current_user', function(){
if(!did_action('plugins_loaded')) $GLOBALS['current_user']=null; }
);}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43869#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list