Changeset 47550 for trunk/src/wp-signup.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-signup.php
r47198 r47550 10 10 nocache_headers(); 11 11 12 if ( is_array( get_site_option( 'illegal_names' ) ) && isset( $_GET['new'] ) && in_array( $_GET['new'], get_site_option( 'illegal_names' ) ) ) {12 if ( is_array( get_site_option( 'illegal_names' ) ) && isset( $_GET['new'] ) && in_array( $_GET['new'], get_site_option( 'illegal_names' ), true ) ) { 13 13 wp_redirect( network_home_url() ); 14 14 die(); … … 170 170 171 171 // Use US English if the default isn't available. 172 if ( ! in_array( $lang, $languages ) ) {172 if ( ! in_array( $lang, $languages, true ) ) { 173 173 $lang = ''; 174 174 } … … 439 439 $languages = signup_get_available_languages(); 440 440 441 if ( in_array( $_POST['WPLANG'], $languages ) ) {441 if ( in_array( $_POST['WPLANG'], $languages, true ) ) { 442 442 $language = wp_unslash( sanitize_text_field( $_POST['WPLANG'] ) ); 443 443 … … 790 790 $languages = signup_get_available_languages(); 791 791 792 if ( in_array( $_POST['WPLANG'], $languages ) ) {792 if ( in_array( $_POST['WPLANG'], $languages, true ) ) { 793 793 $language = wp_unslash( sanitize_text_field( $_POST['WPLANG'] ) ); 794 794
Note: See TracChangeset
for help on using the changeset viewer.