diff --git a/wp-includes/class-wp-http.php b/wp-includes/class-wp-http.php index a30f9f7931..bbb6dd41ae 100644 --- a/wp-includes/class-wp-http.php +++ b/wp-includes/class-wp-http.php @@ -467,9 +467,9 @@ class WP_Http { return null !== $attr; } ); - $cookie_jar[ $value->name ] = new WpOrg\Requests\Cookie( $value->name, $value->value, $attributes, array( 'host-only' => $value->host_only ) ); + $cookie_jar[ $value->name ] = new WpOrg\Requests\Cookie( (string) $value->name, $value->value, $attributes, array( 'host-only' => $value->host_only ) ); } elseif ( is_scalar( $value ) ) { - $cookie_jar[ $name ] = new WpOrg\Requests\Cookie( $name, (string) $value ); + $cookie_jar[ $name ] = new WpOrg\Requests\Cookie( (string) $name, (string) $value ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 30e567169b..9ece4d67cd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57500'; +$wp_version = '6.5-alpha-57501'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.