464 | | if ( isset($_POST['pass1']) && $_POST['pass1'] != $_POST['pass2'] ) { |
465 | | $errors = new WP_Error('password_reset_mismatch', __('The passwords do not match.')); |
466 | | } elseif ( isset($_POST['pass1']) && !empty($_POST['pass1']) ) { |
| 464 | if ( isset($_POST['pass1']) && $_POST['pass1'] != $_POST['pass2'] ) |
| 465 | $errors->add( 'password_reset_mismatch', __('The passwords do not match.') ); |
| 466 | |
| 467 | do_action_ref_array( 'validate_password_reset' , array( &$errors, $user ) ); |
| 468 | |
| 469 | if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) { |