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