WordPress.org

Make WordPress Core

Ticket #23480: auth_cookie.patch

File auth_cookie.patch, 547 bytes (added by mordauk, 5 years ago)
  • wp-includes/pluggable.php

     
    650650 * @param bool $remember Whether to remember the user
    651651 */
    652652function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
     653
     654        if( ! is_int( $user_id ) || $user_id < 1 )
     655                return;
     656
    653657        if ( $remember ) {
    654658                $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember);
    655659        } else {