Changeset 47054 for trunk/src/wp-activate.php
- Timestamp:
- 01/09/2020 12:53:29 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-activate.php
r45932 r47054 38 38 $redirect_url = remove_query_arg( 'key' ); 39 39 40 if ( $redirect_url !== remove_query_arg( false )) {40 if ( remove_query_arg( false ) !== $redirect_url ) { 41 41 setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true ); 42 42 wp_safe_redirect( $redirect_url ); … … 47 47 } 48 48 49 if ( $result === null&& isset( $_COOKIE[ $activate_cookie ] ) ) {49 if ( null === $result && isset( $_COOKIE[ $activate_cookie ] ) ) { 50 50 $key = $_COOKIE[ $activate_cookie ]; 51 51 $result = wpmu_activate_signup( $key ); … … 53 53 } 54 54 55 if ( $result === null|| ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {55 if ( null === $result || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) { 56 56 status_header( 404 ); 57 57 } elseif ( is_wp_error( $result ) ) { … … 143 143 <?php 144 144 echo '<p class="lead-in">'; 145 if ( $signup->domain . $signup->path == '') {145 if ( '' === $signup->domain . $signup->path ) { 146 146 printf( 147 147 /* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */ … … 163 163 } 164 164 echo '</p>'; 165 } elseif ( $result === null|| is_wp_error( $result ) ) {165 } elseif ( null === $result || is_wp_error( $result ) ) { 166 166 ?> 167 167 <h2><?php _e( 'An error occurred during the activation' ); ?></h2> … … 182 182 183 183 <?php 184 if ( $url && $url != network_home_url( '', 'http' )) :184 if ( $url && network_home_url( '', 'http' ) !== $url ) : 185 185 switch_to_blog( (int) $result['blog_id'] ); 186 186 $login_url = wp_login_url();
Note: See TracChangeset
for help on using the changeset viewer.