Changeset 45583 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r45448 r45583 45 45 } 46 46 47 $pass1 = $pass2 = ''; 47 $pass1 = ''; 48 $pass2 = ''; 48 49 if ( isset( $_POST['pass1'] ) ) { 49 50 $pass1 = $_POST['pass1']; … … 202 203 } elseif ( ! is_email( $user->user_email ) ) { 203 204 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ), array( 'form-field' => 'email' ) ); 204 } elseif ( ( $owner_id = email_exists( $user->user_email ) ) && ( ! $update || ( $owner_id != $user->ID ) ) ) { 205 $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ), array( 'form-field' => 'email' ) ); 205 } else { 206 $owner_id = email_exists( $user->user_email ); 207 if ( $owner_id && ( ! $update || ( $owner_id != $user->ID ) ) ) { 208 $errors->add( 'email_exists', __( '<strong>ERROR</strong>: This email is already registered, please choose another one.' ), array( 'form-field' => 'email' ) ); 209 } 206 210 } 207 211
Note: See TracChangeset
for help on using the changeset viewer.