Make WordPress Core


Ignore:
Timestamp:
07/29/2013 03:43:22 AM (11 years ago)
Author:
nacin
Message:

Don't override an existing WP_Error object in wp_authenticate_username_password().

props willnorris.
fixes #19714.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r24848 r24850  
    7474
    7575    if ( empty($username) || empty($password) ) {
     76        if ( is_wp_error( $user ) )
     77            return $user;
     78
    7679        $error = new WP_Error();
    7780
Note: See TracChangeset for help on using the changeset viewer.