[wp-trac] [WordPress Trac] #49263: Switching blog doesn't switch locale
WordPress Trac
noreply at wordpress.org
Thu Jan 23 23:46:01 UTC 2020
#49263: Switching blog doesn't switch locale
-------------------------+------------------------------
Reporter: iandunn | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: multisite
-------------------------+------------------------------
Comment (by iandunn):
[attachment:"49263.2.diff"] takes the approach of modularizing
`get_locale()` so that the inner logic is reusable without any side-
effects on globals/filters.
That's working at first glance, but still needs lots of testing and
refinement, as well as clarity around what's needed to properly restore a
locale. Also opinions on whether or not the new `_get_raw_site_locale()`
should be labeled internal or not.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49263#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list