WordPress.org

Make WordPress Core

Ticket #14575: 14575.2.diff

File 14575.2.diff, 896 bytes (added by nacin, 4 years ago)
  • wp-includes/user.php

     
    106106                return $userdata; 
    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); 
    112113        return $user;