Changeset 47550 for trunk/src/wp-admin/options-general.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-general.php
r47219 r47550 158 158 $languages = get_available_languages(); 159 159 $translations = wp_get_available_translations(); 160 if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages ) ) {160 if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages, true ) ) { 161 161 $languages[] = WPLANG; 162 162 } … … 168 168 <?php 169 169 $locale = get_locale(); 170 if ( ! in_array( $locale, $languages ) ) {170 if ( ! in_array( $locale, $languages, true ) ) { 171 171 $locale = ''; 172 172 } … … 277 277 <br /> 278 278 <?php 279 if ( in_array( $tzstring, timezone_identifiers_list() ) ) {279 if ( in_array( $tzstring, timezone_identifiers_list(), true ) ) { 280 280 $transitions = timezone_transitions_get( timezone_open( $tzstring ), time() ); 281 281
Note: See TracChangeset
for help on using the changeset viewer.