Include the username in the incorrect password message, for clarity. fixes #14575.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-08 21:25:52 +00:00
parent c1a0cf30c3
commit 62364410c0
1 changed files with 2 additions and 1 deletions

View File

@ -106,7 +106,8 @@ function wp_authenticate_username_password($user, $username, $password) {
return $userdata;
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);
return $user;