From d798e60859addb2857005c8a240a0a6cac19ca73 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 5 Apr 2022 04:18:03 +0000 Subject: [PATCH] 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 --- wp-includes/version.php | 2 +- wp-login.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 972825a931..ce9c5c496f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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. diff --git a/wp-login.php b/wp-login.php index 781f8b246f..73969ee124 100644 --- a/wp-login.php +++ b/wp-login.php @@ -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', __( 'Error: The passwords do not match.' ) ); }