Make WordPress Core

Ticket #33101: 33101.1.patch

File 33101.1.patch, 702 bytes (added by jmayhak, 11 years ago)
  • src/wp-admin/includes/user.php

     
    137137                $errors->add( 'pass', __( '<strong>ERROR</strong>: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) );
    138138
    139139        /* checking the password has been typed twice the same */
    140         if ( $pass1 != $pass2 )
     140        if ( $pass1 != $pass2 && !( empty($pass1) || empty($pass2) ) )
    141141                $errors->add( 'pass', __( '<strong>ERROR</strong>: Please enter the same password in the two password fields.' ), array( 'form-field' => 'pass1' ) );
    142142
    143143        if ( !empty( $pass1 ) )