Make WordPress Core

Ticket #19714: 19714.diff

File 19714.diff, 402 bytes (added by willnorris, 11 years ago)
  • wp-includes/user.php

     
    7373        if ( is_a($user, 'WP_User') ) { return $user; }
    7474
    7575        if ( empty($username) || empty($password) ) {
     76                if ( is_wp_error($user) )
     77                        return $user;
     78
    7679                $error = new WP_Error();
    7780
    7881                if ( empty($username) )