mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-24 07:36:02 +00:00
In [53874] the `$locale` parameter was added to `load_textdomain()` so it can be used to properly fill `WP_Textdomain_Registry`. Since `$locale` may not be the same value as `determine_locale()` returns (e.g. when filtered by `plugin_locale` in `load_plugin_textdomain()`) this changeset also passes the `$locale` parameter to the filter so custom file loading implementations are using the same locale as `load_textdomain()` got. Follow-up to [53874]. Props ocean90, cadic, SergeyBiryukov, swissspidy, costdev. Fixes #57056. Built from https://develop.svn.wordpress.org/trunk@55196 git-svn-id: http://core.svn.wordpress.org/trunk@54729 1a063a9b-81f0-0310-95a4-ce76da25c4cd