Changeset 47550 for trunk/src/wp-admin/network/site-new.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-new.php
r47198 r47550 53 53 $subdirectory_reserved_names = get_subdirectory_reserved_names(); 54 54 55 if ( in_array( $domain, $subdirectory_reserved_names ) ) {55 if ( in_array( $domain, $subdirectory_reserved_names, true ) ) { 56 56 wp_die( 57 57 sprintf( … … 74 74 if ( '' === $_POST['WPLANG'] ) { 75 75 $meta['WPLANG'] = ''; // en_US 76 } elseif ( in_array( $_POST['WPLANG'], get_available_languages() ) ) {76 } elseif ( in_array( $_POST['WPLANG'], get_available_languages(), true ) ) { 77 77 $meta['WPLANG'] = $_POST['WPLANG']; 78 78 } elseif ( current_user_can( 'install_languages' ) && wp_can_install_language_pack() ) { … … 261 261 262 262 // Use English if the default isn't available. 263 if ( ! in_array( $lang, $languages ) ) {263 if ( ! in_array( $lang, $languages, true ) ) { 264 264 $lang = ''; 265 265 }
Note: See TracChangeset
for help on using the changeset viewer.