From 71b4699937b237b1e6ba94d9806534cfadb476af Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Tue, 19 Nov 2024 10:28:02 +0200 Subject: [PATCH] fix: cast `$expired` as `int` in `wp_validate_auth_cookie()` --- src/wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index da637ebbcfefc..5cdcc87288b52 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -710,7 +710,7 @@ function wp_validate_auth_cookie( $cookie = '', $scheme = '' ) { $username = $cookie_elements['username']; $hmac = $cookie_elements['hmac']; $token = $cookie_elements['token']; - $expired = $cookie_elements['expiration']; + $expired = (int) $cookie_elements['expiration']; $expiration = $cookie_elements['expiration']; // Allow a grace period for POST and Ajax requests.