Changeset 39069
- Timestamp:
- 11/01/2016 09:23:23 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r39067 r39069 711 711 * @param string $domain Text domain. Unique identifier for retrieving translated strings. 712 712 */ 713 $locale = apply_filters( 'plugin_locale', get_locale(), $domain );713 $locale = apply_filters( 'plugin_locale', is_admin() ? get_user_locale() : get_locale(), $domain ); 714 714 715 715 $mofile = $domain . '-' . $locale . '.mo'; … … 745 745 function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) { 746 746 /** This filter is documented in wp-includes/l10n.php */ 747 $locale = apply_filters( 'plugin_locale', get_locale(), $domain );747 $locale = apply_filters( 'plugin_locale', is_admin() ? get_user_locale() : get_locale(), $domain ); 748 748 749 749 $mofile = $domain . '-' . $locale . '.mo'; … … 784 784 * @param string $domain Text domain. Unique identifier for retrieving translated strings. 785 785 */ 786 $locale = apply_filters( 'theme_locale', get_locale(), $domain );786 $locale = apply_filters( 'theme_locale', is_admin() ? get_user_locale() : get_locale(), $domain ); 787 787 788 788 $mofile = $domain . '-' . $locale . '.mo'; … … 866 866 } 867 867 868 $locale = get_locale();868 $locale = is_admin() ? get_user_locale() : get_locale(); 869 869 $mofile = "{$domain}-{$locale}.mo"; 870 870
Note: See TracChangeset
for help on using the changeset viewer.