WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/09/2014 03:22:13 PM (7 years ago)
Author:
nacin
Message:

Allow for custom authentication handlers for all requests.

Turn the logic used by wp_get_current_user() into a determine_current_user filter.

props rmccue.
fixes #26706.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r27154 r27484  
    301301add_filter( 'authenticate', 'wp_authenticate_username_password',  20, 3 );
    302302add_filter( 'authenticate', 'wp_authenticate_spam_check',         99    );
     303add_filter( 'determine_current_user', 'wp_validate_auth_cookie'          );
     304add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20 );
    303305
    304306unset($filter, $action);
Note: See TracChangeset for help on using the changeset viewer.