Skip to content

Commit db70546

Browse files
committed
Tentative extra PHP 8.1 fix
1 parent 47c58e9 commit db70546

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wp-includes/Requests/Cookie.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ protected function normalize_attribute($name, $value) {
261261
switch (strtolower($name)) {
262262
case 'expires':
263263
// Expiration parsing, as per RFC 6265 section 5.2.1
264+
if (is_null($value)) {
265+
return null;
266+
}
267+
264268
if (is_int($value)) {
265269
return $value;
266270
}

0 commit comments

Comments
 (0)