Make WordPress Core

Ticket #22516: 22516.diff

File 22516.diff, 497 bytes (added by barry, 12 years ago)
  • wp-includes/user.php

     
    7070 */
    7171add_filter('authenticate', 'wp_authenticate_username_password', 20, 3);
    7272function wp_authenticate_username_password($user, $username, $password) {
     73        if ( is_wp_error( $user ) ) { return $user; }
    7374        if ( is_a($user, 'WP_User') ) { return $user; }
    7475
    7576        if ( empty($username) || empty($password) ) {