Include the username in the incorrect password message, for clarity. fixes #14575.
git-svn-id: https://develop.svn.wordpress.org/trunk@16821 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b105838594
commit
396b57920f
@ -106,7 +106,8 @@ function wp_authenticate_username_password($user, $username, $password) {
|
|||||||
return $userdata;
|
return $userdata;
|
||||||
|
|
||||||
if ( !wp_check_password($password, $userdata->user_pass, $userdata->ID) )
|
if ( !wp_check_password($password, $userdata->user_pass, $userdata->ID) )
|
||||||
return new WP_Error('incorrect_password', sprintf(__('<strong>ERROR</strong>: Incorrect password. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login')));
|
return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' ),
|
||||||
|
$username, site_url( 'wp-login.php?action=lostpassword', 'login' ) ) );
|
||||||
|
|
||||||
$user = new WP_User($userdata->ID);
|
$user = new WP_User($userdata->ID);
|
||||||
return $user;
|
return $user;
|
||||||
|
Loading…
Reference in New Issue
Block a user