Make WordPress Core


Ignore:
Timestamp:
12/08/2010 09:25:52 PM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r16596 r16821  
    107107
    108108    if ( !wp_check_password($password, $userdata->user_pass, $userdata->ID) )
    109         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')));
     109        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>?' ),
     110        $username, site_url( 'wp-login.php?action=lostpassword', 'login' ) ) );
    110111
    111112    $user =  new WP_User($userdata->ID);
Note: See TracChangeset for help on using the changeset viewer.