- Timestamp:
- 10/21/2018 03:02:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/class-wp-locale-switcher.php
r41289 r43776 46 46 */ 47 47 public function __construct() { 48 $this->original_locale = is_admin() ? get_user_locale() : get_locale();48 $this->original_locale = determine_locale(); 49 49 $this->available_languages = array_merge( array( 'en_US' ), get_available_languages() ); 50 50 } … … 68 68 */ 69 69 public function switch_to_locale( $locale ) { 70 $current_locale = is_admin() ? get_user_locale() : get_locale();70 $current_locale = determine_locale(); 71 71 if ( $current_locale === $locale ) { 72 72 return false;
Note: See TracChangeset
for help on using the changeset viewer.