WordPress.org

Make WordPress Core

Changeset 6685


Ignore:
Timestamp:
01/29/2008 08:17:11 PM (12 years ago)
Author:
ryan
Message:

Add wp_authenticate_user filter

File:
1 edited

Legend:

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

    r6682 r6685  
    437437        do_action( 'wp_login_failed', $username );
    438438        return new WP_Error('invalid_username', __('<strong>ERROR</strong>: Invalid username.'));
     439    }
     440
     441    $user = apply_filters('wp_authenticate_user', $user, $password);
     442    if ( is_wp_error($user) ) {
     443        do_action( 'wp_login_failed', $username );
     444        return $user;
    439445    }
    440446
Note: See TracChangeset for help on using the changeset viewer.