WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #37113


Ignore:
Timestamp:
06/16/2016 11:30:05 AM (5 years ago)
Author:
swissspidy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37113

    • Property Owner set to swissspidy
    • Property Status changed from new to assigned
  • Ticket #37113 – Description

    initial v2  
    11#34114 removed the requirement to call `load_plugin_textdomain()` or `load_theme_textdomain()` by checking the languages directory for available translation files.
    22
    3 However, as pointed out by @opajaap in the [https://wordpress.org/support/topic/duplicateunwanted-loading-of-plugin-textdomain support forums], `unload_textdomain()` does not work anymore because that. `_load_textdomain_just_in_time()` would simply load the text domain again and again.
     3However, as pointed out by @opajaap in the [https://wordpress.org/support/topic/duplicateunwanted-loading-of-plugin-textdomain support forums], `unload_textdomain()` does not work anymore because of that. `_load_textdomain_just_in_time()` would simply load the text domain again and again.
    44
    55We need some sorts of global array to keep track of unloaded text domains, which `_load_textdomain_just_in_time()` would ignore. Unloaded text domains would need to be loaded explicitly if one wants to use it again — like before.