Ticket #14286: 14286.diff
File 14286.diff, 909 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/user.php
169 169 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) ); 170 170 } elseif ( !is_email( $user->user_email ) ) { 171 171 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The e-mail address isn’t correct.' ), array( 'form-field' => 'email' ) ); 172 } elseif ( ( $owner_id = email_exists($user->user_email) ) && $owner_id != $user->ID) {172 } elseif ( ( $owner_id = email_exists($user->user_email) ) && ( !$update || ( $owner_id != $user->ID ) ) ) { 173 173 $errors->add( 'email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.'), array( 'form-field' => 'email' ) ); 174 174 } 175 175