mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Login, Registration: Fix coding standards errors in [53067].
See #35500. git-svn-id: https://develop.svn.wordpress.org/trunk@53068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a742b270ff
commit
f790a8ed88
@ -909,12 +909,12 @@ switch ( $action ) {
|
||||
$_POST['pass1'] = trim( $_POST['pass1'] );
|
||||
|
||||
if ( empty( $_POST['pass1'] ) ) {
|
||||
$errors->add( 'password_reset_empty_space', __( 'The password cannot be a space or all spaces.' ) );
|
||||
$errors->add( 'password_reset_empty_space', __( 'The password cannot be a space or all spaces.' ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check if password fields do not match.
|
||||
if ( ! empty( $_POST['pass1'] ) && $_POST['pass1'] !== trim( $_POST['pass2'] ) ) {
|
||||
if ( ! empty( $_POST['pass1'] ) && trim( $_POST['pass2'] ) !== $_POST['pass1'] ) {
|
||||
$errors->add( 'password_reset_mismatch', __( '<strong>Error</strong>: The passwords do not match.' ) );
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user