Changeset 47808 for trunk/src/wp-includes/ms-deprecated.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-deprecated.php
r47198 r47808 200 200 } 201 201 202 if ( $num == 'all') {202 if ( 'all' === $num ) { 203 203 return array_slice( $blog_list, $start, count( $blog_list ) ); 204 204 } else { … … 294 294 wp_die( __( 'A variable mismatch has been detected.' ), __( 'Sorry, you are not allowed to view this item.' ), 400 ); 295 295 } elseif ( isset( $_GET['redirect'] ) ) { 296 if ( substr( $_GET['redirect'], 0, 2 ) == 's_')296 if ( 's_' === substr( $_GET['redirect'], 0, 2 ) ) 297 297 $url .= '&action=blogs&s='. esc_html( substr( $_GET['redirect'], 2 ) ); 298 298 } elseif ( isset( $_POST['redirect'] ) ) { … … 373 373 $url = 'http://' . substr( $domain, strpos( $domain, '.' ) + 1 ) . $path; 374 374 // We're not installing the main blog. 375 if ( $blogname != 'www.')375 if ( 'www.' !== $blogname ) 376 376 $url .= $blogname . '/'; 377 377 } else { // Main blog. … … 719 719 clean_user_cache( $user ); 720 720 721 if ( $pref == 'spam') {721 if ( 'spam' === $pref ) { 722 722 if ( $value == 1 ) { 723 723 /** This filter is documented in wp-includes/user.php */
Note: See TracChangeset
for help on using the changeset viewer.