diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index d078d3d0f8a85..f60dbe5d3fae2 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -2792,7 +2792,7 @@ function wp_update_user( $userdata ) { $remember = false; - if ( false !== $logged_in_cookie && ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) { + if ( false !== $logged_in_cookie && ( (int) $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) { $remember = true; }