Changeset 41163 for trunk/src/wp-admin/user-edit.php
- Timestamp:
- 07/27/2017 02:09:51 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-edit.php
r39907 r41163 89 89 90 90 // Execute confirmed email change. See send_confirmation_on_profile_email(). 91 if ( is_multisite() &&IS_PROFILE_PAGE && isset( $_GET[ 'newuseremail' ] ) && $current_user->ID ) {91 if ( IS_PROFILE_PAGE && isset( $_GET[ 'newuseremail' ] ) && $current_user->ID ) { 92 92 $new_email = get_user_meta( $current_user->ID, '_new_email', true ); 93 93 if ( $new_email && hash_equals( $new_email[ 'hash' ], $_GET[ 'newuseremail' ] ) ) { … … 95 95 $user->ID = $current_user->ID; 96 96 $user->user_email = esc_html( trim( $new_email[ 'newemail' ] ) ); 97 if ( $wpdb->get_var( $wpdb->prepare( "SELECT user_login FROM {$wpdb->signups} WHERE user_login = %s", $current_user->user_login ) ) ) {97 if ( is_multisite() && $wpdb->get_var( $wpdb->prepare( "SELECT user_login FROM {$wpdb->signups} WHERE user_login = %s", $current_user->user_login ) ) ) { 98 98 $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->signups} SET user_email = %s WHERE user_login = %s", $user->user_email, $current_user->user_login ) ); 99 99 } … … 105 105 wp_redirect( add_query_arg( array( 'error' => 'new-email' ), self_admin_url( 'profile.php' ) ) ); 106 106 } 107 } elseif ( is_multisite() && IS_PROFILE_PAGE && !empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' === $_GET['dismiss'] ) {107 } elseif ( IS_PROFILE_PAGE && ! empty( $_GET['dismiss'] ) && $current_user->ID . '_new_email' === $_GET['dismiss'] ) { 108 108 check_admin_referer( 'dismiss-' . $current_user->ID . '_new_email' ); 109 109 delete_user_meta( $current_user->ID, '_new_email' );
Note: See TracChangeset
for help on using the changeset viewer.