Changeset 44134 for trunk/src/wp-includes/class-wp-locale-switcher.php
- Timestamp:
- 12/14/2018 01:31:27 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-locale-switcher.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43776
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/class-wp-locale-switcher.php
r42395 r44134 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 } … … 70 70 */ 71 71 public function switch_to_locale( $locale ) { 72 $current_locale = is_admin() ? get_user_locale() : get_locale();72 $current_locale = determine_locale(); 73 73 if ( $current_locale === $locale ) { 74 74 return false;
Note: See TracChangeset
for help on using the changeset viewer.