From 37652569e4c5fcdddfb855dfcb9d971670d7dd07 Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 8 Jun 2021 23:34:58 +0000 Subject: [PATCH] Login and Registration: Improve the unknown username error message The new message is more clear and makes the next step more clear to the user. Props dd32, SergeyBiryukov, audrasjb, desrosj, dlh, marybaum, chanthaboune, jeffpaul. Fixes #52915. Built from https://develop.svn.wordpress.org/trunk@51126 git-svn-id: http://core.svn.wordpress.org/trunk@50735 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 82b5013a08..858d4a065d 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -149,7 +149,11 @@ function wp_authenticate_username_password( $user, $username, $password ) { if ( ! $user ) { return new WP_Error( 'invalid_username', - __( 'Error: Unknown username. Check again or try your email address.' ) + sprintf( + /* translators: %s: User name. */ + __( 'Error: The username %s is not registered on this site. If you are unsure of your username, try your email address instead.' ), + $username + ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5a64da2427..6dca073f33 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51125'; +$wp_version = '5.8-alpha-51126'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.