Ticket #19714: authenticate.diff

File authenticate.diff, 407 bytes (added by willnorris, 17 months ago)
  • wp-includes/user.php

     
    7474        if ( is_a($user, 'WP_User') ) { return $user; } 
    7575 
    7676        if ( empty($username) || empty($password) ) { 
     77                if ( is_a($user, 'WP_Error') ) { return $user; } 
     78 
    7779                $error = new WP_Error(); 
    7880 
    7981                if ( empty($username) )