WordPress.org

Make WordPress Core

Ticket #5472: 5472.2.diff

File 5472.2.diff, 562 bytes (added by Denis-de-Bernardy, 6 years ago)
  • wp-includes/user.php

     
    8585 
    8686        $userdata = get_userdatabylogin($username); 
    8787 
    88         if ( !$userdata || ($userdata->user_login != $username) ) { 
     88        if ( !$userdata ) { 
    8989                return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login'))); 
    9090        } 
    9191