Make WordPress Core


Ignore:
Timestamp:
06/08/2021 11:33:16 PM (4 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r51077 r51126  
    150150        return new WP_Error(
    151151            'invalid_username',
    152             __( '<strong>Error</strong>: Unknown username. Check again or try your email address.' )
     152            sprintf(
     153                /* translators: %s: User name. */
     154                __( '<strong>Error</strong>: The username <strong>%s</strong> is not registered on this site. If you are unsure of your username, try your email address instead.' ),
     155                $username
     156            )
    153157        );
    154158    }
Note: See TracChangeset for help on using the changeset viewer.