Changeset 49566 for trunk/src/wp-includes/class-wp-locale-switcher.php
- Timestamp:
- 11/12/2020 02:41:19 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale-switcher.php
r49236 r49566 197 197 198 198 foreach ( $domains as $domain ) { 199 // The default text domain is handled by `load_default_textdomain()`.200 199 if ( 'default' === $domain ) { 201 200 continue; 202 201 } 203 202 204 unload_textdomain( $domain , true);203 unload_textdomain( $domain ); 205 204 get_translations_for_domain( $domain ); 206 205 } … … 220 219 */ 221 220 private function change_locale( $locale ) { 222 global $wp_locale; 221 // Reset translation availability information. 222 _get_path_to_translation( null, true ); 223 223 224 224 $this->load_translations( $locale ); 225 225 226 $ wp_locale= new WP_Locale();226 $GLOBALS['wp_locale'] = new WP_Locale(); 227 227 228 228 /**
Note: See TracChangeset
for help on using the changeset viewer.