Changeset 54797
- Timestamp:
- 11/10/2022 07:38:20 PM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/admin.php
r47198 r54797 14 14 * load_default_textdomain() will not have done so in this context. 15 15 */ 16 load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale() . '.mo' ); 16 $admin_locale = get_locale(); 17 load_textdomain( 'default', WP_LANG_DIR . '/admin-' . $admin_locale . '.mo', $admin_locale ); 18 unset( $admin_locale ); 17 19 } 18 20 -
trunk/src/wp-includes/functions.php
r54754 r54797 6352 6352 $mofile = WP_LANG_DIR . '/continents-cities-' . $locale_loaded . '.mo'; 6353 6353 unload_textdomain( 'continents-cities' ); 6354 load_textdomain( 'continents-cities', $mofile );6354 load_textdomain( 'continents-cities', $mofile, $locale_loaded ); 6355 6355 $mo_loaded = true; 6356 6356 } -
trunk/src/wp-includes/load.php
r54637 r54797 1393 1393 foreach ( $locations as $location ) { 1394 1394 if ( file_exists( $location . '/' . $locale . '.mo' ) ) { 1395 load_textdomain( 'default', $location . '/' . $locale . '.mo' );1395 load_textdomain( 'default', $location . '/' . $locale . '.mo', $locale ); 1396 1396 if ( defined( 'WP_SETUP_CONFIG' ) && file_exists( $location . '/admin-' . $locale . '.mo' ) ) { 1397 load_textdomain( 'default', $location . '/admin-' . $locale . '.mo' );1397 load_textdomain( 'default', $location . '/admin-' . $locale . '.mo', $locale ); 1398 1398 } 1399 1399 break 2; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php
r54043 r54797 337 337 if ( ! is_admin() ) { 338 338 $locale = determine_locale(); 339 load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo" );339 load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo", $locale ); 340 340 } 341 341 }
Note: See TracChangeset
for help on using the changeset viewer.