rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -292,7 +292,13 @@ class WC_Session_Handler extends WC_Session {
return false;
}
list( $customer_id, $session_expiration, $session_expiring, $cookie_hash ) = explode( '||', $cookie_value );
$parsed_cookie = explode( '||', $cookie_value );
if ( count( $parsed_cookie ) < 4 ) {
return false;
}
list( $customer_id, $session_expiration, $session_expiring, $cookie_hash ) = $parsed_cookie;
if ( empty( $customer_id ) ) {
return false;