Ticket #23480: auth_cookie.patch
File auth_cookie.patch, 547 bytes (added by , 12 years ago) |
---|
-
wp-includes/pluggable.php
650 650 * @param bool $remember Whether to remember the user 651 651 */ 652 652 function wp_set_auth_cookie($user_id, $remember = false, $secure = '') { 653 654 if( ! is_int( $user_id ) || $user_id < 1 ) 655 return; 656 653 657 if ( $remember ) { 654 658 $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember); 655 659 } else {