[wp-trac] [WordPress Trac] #43869: Do not initialize current user too early in `get_user_locale()`
WordPress Trac
noreply at wordpress.org
Mon Oct 21 16:29:43 UTC 2024
#43869: Do not initialize current user too early in `get_user_locale()`
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Comment (by flixos90):
+1, the fixes from #44937 help quite a bit with this problem.
The `get_user_locale()` function may still be improved to address the
underlying problem, however per #44937 at least from Core itself this
should no longer be an issue in practice, as Core's problematic usage all
came from `load_*_textdomain()` calls.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43869#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list