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