diff -r be944660c56a -r 3d72ae0968f4 wp/wp-login.php --- a/wp/wp-login.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-login.php Tue Sep 27 16:37:53 2022 +0200 @@ -58,7 +58,7 @@ * * @since 3.0.0 * - * @param array $shake_error_codes Error codes that shake the login form. + * @param string[] $shake_error_codes Error codes that shake the login form. */ $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes ); @@ -185,8 +185,8 @@ * * @since 3.5.0 * - * @param array $classes An array of body classes. - * @param string $action The action that brought the visitor to the login page. + * @param string[] $classes An array of body classes. + * @param string $action The action that brought the visitor to the login page. */ $classes = apply_filters( 'login_body_class', $classes, $action ); @@ -312,6 +312,68 @@ . ?> +
- +
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'] ) && trim( $_POST['pass2'] ) !== $_POST['pass1'] ) { $errors->add( 'password_reset_mismatch', __( 'Error: The passwords do not match.' ) ); } @@ -878,7 +954,7 @@