[wp-trac] [WordPress Trac] #39210: switch_to_locale() unloads all plugin and theme translations
WordPress Trac
noreply at wordpress.org
Mon Oct 19 10:25:52 UTC 2020
#39210: switch_to_locale() unloads all plugin and theme translations
----------------------------------------------------+---------------------
Reporter: gchtr | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: I18N | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-testing | Focuses:
----------------------------------------------------+---------------------
Changes (by ocean90):
* keywords: has-patch dev-feedback has-unit-tests => has-patch has-unit-
tests needs-testing
Comment:
The patch from [attachment:"39210.2.diff"] has been refreshed and
[https://github.com/WordPress/wordpress-develop/pull/613 moved to GitHub].
It's now ready for additional review/testing.
@jsmoriss Since you just recently noticed the same issue, would you mind
giving the patch a try to see if it fixes the issue you were having?
@dd32 Instead of adding the new flag to `unload_textdomain()` the latest
patch doesn't call `unload_textdomain()` anymore, instead it
[https://github.com/WordPress/wordpress-
develop/pull/613#discussion_r507067828 "uses unset( $l10n[ $domain ] );"].
Curious what you think about this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39210#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list