diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 7c01fa7106..bd4daa899c 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -169,7 +169,7 @@ function edit_user( $user_id = 0 ) { $errors->add( 'empty_email', __( 'ERROR: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) ); } elseif ( !is_email( $user->user_email ) ) { $errors->add( 'invalid_email', __( 'ERROR: The e-mail address isn’t correct.' ), array( 'form-field' => 'email' ) ); - } elseif ( ( $owner_id = email_exists($user->user_email) ) && $owner_id != $user->ID ) { + } elseif ( ( $owner_id = email_exists($user->user_email) ) && ( !$update || ( $owner_id != $user->ID ) ) ) { $errors->add( 'email_exists', __('ERROR: This email is already registered, please choose another one.'), array( 'form-field' => 'email' ) ); }