[wp-trac] [WordPress Trac] #57056: Pass $locale to override_load_textdomain filter

WordPress Trac noreply at wordpress.org
Thu Nov 10 09:25:42 UTC 2022


#57056: Pass $locale to override_load_textdomain filter
-------------------------+----------------------------------------
 Reporter:  ocean90      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  I18N         |    Version:  6.1
 Severity:  normal       |   Keywords:  needs-patch good-first-bug
  Focuses:               |
-------------------------+----------------------------------------
 In [53874] the `$locale` parameter was added to `load_textdomain()` so it
 can be used to properly fill `WP_Textdomain_Registry`.
 Since the `$locale` may not be the same value as `determine_locale()`
 returns (e.g. when filtered by `plugin_locale` in
 `load_plugin_textdomain()`) we should also pass the new parameter to the
 filter so custom file loading implementations are using the same locale as
 `load_textdomain()` got.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57056>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list