Ticket #33101: 33101.1.patch
| File 33101.1.patch, 702 bytes (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/user.php
137 137 $errors->add( 'pass', __( '<strong>ERROR</strong>: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) ); 138 138 139 139 /* checking the password has been typed twice the same */ 140 if ( $pass1 != $pass2 )140 if ( $pass1 != $pass2 && !( empty($pass1) || empty($pass2) ) ) 141 141 $errors->add( 'pass', __( '<strong>ERROR</strong>: Please enter the same password in the two password fields.' ), array( 'form-field' => 'pass1' ) ); 142 142 143 143 if ( !empty( $pass1 ) )