[wp-trac] [WordPress Trac] #39210: switch_to_locale() unloads all plugin and theme translations
WordPress Trac
noreply at wordpress.org
Sun Jan 22 20:13:08 UTC 2017
#39210: switch_to_locale() unloads all plugin and theme translations
----------------------------------------+------------------
Reporter: gchtr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: I18N | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------
Changes (by ocean90):
* keywords: has-patch => has-patch needs-unit-tests
* milestone: Awaiting Review => 4.8
Comment:
Can't `$l10n_paths` be a property of `WP_Locale_Switcher` to avoid another
global?
I'd really like to change all the `load_*_textdomain()` functions to
behave more like a registration without actually loading the translation.
Loading would be handled by `_load_textdomain_just_in_time()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39210#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list