Login, Registration: Fix coding standards errors in [53067].
See #35500. Built from https://develop.svn.wordpress.org/trunk@53068 git-svn-id: http://core.svn.wordpress.org/trunk@52657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4f060b216
commit
d798e60859
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.0-alpha-53067';
|
$wp_version = '6.0-alpha-53068';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -909,12 +909,12 @@ switch ( $action ) {
|
||||||
$_POST['pass1'] = trim( $_POST['pass1'] );
|
$_POST['pass1'] = trim( $_POST['pass1'] );
|
||||||
|
|
||||||
if ( empty( $_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.
|
// 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.' ) );
|
$errors->add( 'password_reset_mismatch', __( '<strong>Error</strong>: The passwords do not match.' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue