Ticket #26156: user.email.diff
File user.email.diff, 1.0 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/user.php
140 140 if ( !$update && username_exists( $user->user_login ) ) 141 141 $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' )); 142 142 143 /* checking e -mail address */143 /* checking email address */ 144 144 if ( empty( $user->user_email ) ) { 145 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e -mail address.' ), array( 'form-field' => 'email' ) );145 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) ); 146 146 } elseif ( !is_email( $user->user_email ) ) { 147 147 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ), array( 'form-field' => 'email' ) ); 148 148 } elseif ( ( $owner_id = email_exists($user->user_email) ) && ( !$update || ( $owner_id != $user->ID ) ) ) {