[wp-trac] [WordPress Trac] #39210: switch_to_locale() unloads all plugin and theme translations
WordPress Trac
noreply at wordpress.org
Sun Jan 22 21:03:18 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:
----------------------------------------+------------------
Comment (by yoavf):
Replying to [comment:6 ocean90]:
> Can't `$l10n_paths` be a property of `WP_Locale_Switcher` to avoid
another global?
It probably can - I'll see about that
> 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()`.
Would you like to explore that in this ticket, or separately?
> needs-unit-test
What were you thinking in terms of additional unit tests?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39210#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list