WordPress.org

Make WordPress Core

Ticket #5472: 5472.diff

File 5472.diff, 416 bytes (added by mdawaffe, 6 years ago)
  • wp-includes/pluggable.php

     
    308308 
    309309        $login = get_userdatabylogin($username); 
    310310 
    311         if ( !$login || ($login->user_login != $username) ) { 
     311        if ( !$login ) { 
    312312                $error = __('<strong>ERROR</strong>: Invalid username.'); 
    313313                return false; 
    314314        }