From 2c6e1dc1f954ca3a5f502351701404558aad91c8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 26 Mar 2021 12:14:07 +0000 Subject: [PATCH] Login and Registration: Restore the "Error:" prefix for the "Unknown username" message. This makes the message more consistent with other error messages related to authentication and registration. Follow-up to [46417]. Props dd32. See #52914, #52915. Built from https://develop.svn.wordpress.org/trunk@50589 git-svn-id: http://core.svn.wordpress.org/trunk@50202 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index c4c44a0c69..7aada19c9c 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -149,7 +149,7 @@ function wp_authenticate_username_password( $user, $username, $password ) { if ( ! $user ) { return new WP_Error( 'invalid_username', - __( 'Unknown username. Check again or try your email address.' ) + __( 'Error: Unknown username. Check again or try your email address.' ) ); } @@ -347,12 +347,12 @@ function wp_authenticate_application_password( $input_user, $username, $password if ( is_email( $username ) ) { $error = new WP_Error( 'invalid_email', - __( 'Unknown email address. Check again or try your username.' ) + __( 'Error: Unknown email address. Check again or try your username.' ) ); } else { $error = new WP_Error( 'invalid_username', - __( 'Unknown username. Check again or try your email address.' ) + __( 'Error: Unknown username. Check again or try your email address.' ) ); } } elseif ( ! wp_is_application_passwords_available() ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 503a0b0100..40980978cd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50586'; +$wp_version = '5.8-alpha-50589'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.