diff --git a/wp-includes/user.php b/wp-includes/user.php index 6feb062dc2..d24c20b2d6 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -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(__('ERROR: Incorrect password. Lost your password?'), site_url('wp-login.php?action=lostpassword', 'login'))); + return new WP_Error( 'incorrect_password', sprintf( __( 'ERROR: The password you entered for the username %1$s is incorrect. Lost your password?' ), + $username, site_url( 'wp-login.php?action=lostpassword', 'login' ) ) ); $user = new WP_User($userdata->ID); return $user;