[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:12:13 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 flixos90):
Worth noting that [43776] introduces a `pre_determine_locale` filter,
which allows you to short-circuit the default logic. Over the past few
months I have come to the conclusion that it seems almost impossible to
fix this problem without breaking many people's code. I wonder whether we
should close this as `maybelater` for now, as any site where it becomes a
problem could use the above filter instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43869#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list