Ticket #24735: 24735.patch
File 24735.patch, 903 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/pluggable.php
649 649 */ 650 650 function wp_set_auth_cookie($user_id, $remember = false, $secure = '') { 651 651 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; 653 656 } else { 654 657 $expiration = time() + apply_filters('auth_cookie_expiration', 2 * DAY_IN_SECONDS, $user_id, $remember); 655 658 $expire = 0;