diff --git a/wp-includes/Requests/Cookie.php b/wp-includes/Requests/Cookie.php index 00fbbc73be..6fccec64f3 100644 --- a/wp-includes/Requests/Cookie.php +++ b/wp-includes/Requests/Cookie.php @@ -288,6 +288,11 @@ class Requests_Cookie { return $expiry_time; case 'domain': + // Domains are not required as per RFC 6265 section 5.2.3 + if (empty($value)) { + return null; + } + // Domain normalization, as per RFC 6265 section 5.2.3 if ($value[0] === '.') { $value = substr($value, 1); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9a1e87fe59..72a9c3a365 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta2-46415'; +$wp_version = '5.3-beta2-46416'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.