[wp-trac] [WordPress Trac] #43869: Do not initialize current user too early in `get_user_locale()`
WordPress Trac
noreply at wordpress.org
Sat Nov 3 19:16:02 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: 5.0.1
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Comment (by tazotodua):
Replying to [comment:8 flixos90]:
> Worth noting ...
Hm, that's what i can't understand well. Why it cant be made so it didn't
brake many people's code... Instead, it checked if it is being fired too
early... or there was a constant which could be set in `wp-config.php` and
avoid that...
shortly, there should be some way. the obvious thing is that it's very
problematic and always breaks my sites if any plugin calls
get_current_user or like that... very problematic, and i think the WP
should solve that somehow..
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43869#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list