Make WordPress Core

Changeset 23388


Ignore:
Timestamp:
02/06/2013 03:44:43 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Use a human-readable constant in wp_set_auth_cookie(). fixes #23372.

File:
1 edited

Legend:

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

    r23294 r23388  
    652652function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
    653653    if ( $remember ) {
    654         $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember);
     654        $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember);
    655655    } else {
    656         $expiration = time() + apply_filters('auth_cookie_expiration', 172800, $user_id, $remember);
     656        $expiration = time() + apply_filters('auth_cookie_expiration', 2 * DAY_IN_SECONDS, $user_id, $remember);
    657657        $expire = 0;
    658658    }
Note: See TracChangeset for help on using the changeset viewer.