From dc9dbf913fb141f87c5254a7cd3ac2dcb4179221 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 16 Apr 2024 16:52:14 +0000 Subject: [PATCH] Users: Set the default value of `COOKIE_DOMAIN` to an empty string. This matches the type expected by the `setcookie()` function for the `$domain` parameter, and resolves a fatal error if `strict_types` is enabled. Reference: [https://www.php.net/setcookie PHP Manual: setcookie()]. Follow-up to [2725], [6434], [12732], [13062]. Props kmvan, rajinsharwar, jrf, desrosj, Cybr, nicolefurlan, oglekler, hellofromTonya, kirasong, chaion07, mukesh27. Fixes #46550. Built from https://develop.svn.wordpress.org/trunk@58011 git-svn-id: http://core.svn.wordpress.org/trunk@57482 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-constants.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php index 5bccc204cd..ccc3960ce8 100644 --- a/wp-includes/default-constants.php +++ b/wp-includes/default-constants.php @@ -325,9 +325,10 @@ function wp_cookie_constants() { /** * @since 2.0.0 + * @since 6.5.0 The value has changed from false to an empty string. */ if ( ! defined( 'COOKIE_DOMAIN' ) ) { - define( 'COOKIE_DOMAIN', false ); + define( 'COOKIE_DOMAIN', '' ); } if ( ! defined( 'RECOVERY_MODE_COOKIE' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index ea63857307..e72d1fe06d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58010'; +$wp_version = '6.6-alpha-58011'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.