WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39210, comment 17


Ignore:
Timestamp:
02/11/2019 09:48:50 AM (7 months ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39210, comment 17

    initial v1  
    77`add_filter( 'change_locale', function() { $GLOBALS['l10n_unloaded'] = array(); } );```
    88
    9 Another would be a core change like [attachment:"39210.3.diff"] which adds a flag to `unload_textdomain()` to allow the language switcher to indicate that the locale can be reloaded if needed by `_load_textdomain_just_in_time()`.
     9Another would be a core change like [attachment:"39210.3.diff"] which adds a flag to `unload_textdomain()` to allow the language switcher to indicate that the textdomain can be reloaded if needed by `_load_textdomain_just_in_time()`.
    1010
    1111[attachment:"39210.3.diff"] doesn't attempt to fix the scenario where a theme/plugin is loading it's own translations, just the WordPress.org-provided translations. @ocean90 what do you think about at least adding that?