diff --git src/wp-admin/user-edit.php src/wp-admin/user-edit.php
index f1e605bf03..3cb211ddaf 100644
|
|
switch ( $action ) { |
147 | 147 | do_action( 'edit_user_profile_update', $user_id ); |
148 | 148 | } |
149 | 149 | |
150 | | // Update the email address in signups, if present. |
151 | | if ( is_multisite() ) { |
152 | | $user = get_userdata( $user_id ); |
153 | | |
154 | | if ( $user->user_login && isset( $_POST['email'] ) && is_email( $_POST['email'] ) && $wpdb->get_var( $wpdb->prepare( "SELECT user_login FROM {$wpdb->signups} WHERE user_login = %s", $user->user_login ) ) ) { |
155 | | $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->signups} SET user_email = %s WHERE user_login = %s", $_POST['email'], $user_login ) ); |
156 | | } |
157 | | } |
158 | | |
159 | 150 | // Update the user. |
160 | 151 | $errors = edit_user( $user_id ); |
161 | 152 | |