Make WordPress Core

Changeset 10691


Ignore:
Timestamp:
03/03/2009 10:51:55 PM (16 years ago)
Author:
ryan
Message:

Add auth_cookie_expiration filter

File:
1 edited

Legend:

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

    r10685 r10691  
    608608function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
    609609    if ( $remember ) {
    610         $expiration = $expire = time() + 1209600;
     610        $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember);
    611611    } else {
    612         $expiration = time() + 172800;
     612        $expiration = time() + apply_filters('auth_cookie_expiration', 172800, $user_id, $remember);
    613613        $expire = 0;
    614614    }
Note: See TracChangeset for help on using the changeset viewer.