Make WordPress Core

Ticket #24735: 24735.patch

File 24735.patch, 903 bytes (added by azaozz, 11 years ago)
  • src/wp-includes/pluggable.php

     
    649649 */
    650650function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
    651651        if ( $remember ) {
    652                 $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember);
     652                $expiration = time() + apply_filters('auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember);
     653                // Ensure the browser will continue to send the cookie after the expiration time is reached.
     654                // Needed for the login grace period in wp_validate_auth_cookie().
     655                $expire = $expiration + DAY_IN_SECONDS;
    653656        } else {
    654657                $expiration = time() + apply_filters('auth_cookie_expiration', 2 * DAY_IN_SECONDS, $user_id, $remember);
    655658                $expire = 0;