diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index d3a893787c..d9d24fd796 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -433,7 +433,7 @@ class WP_Http { foreach ( $cookies as $name => $value ) { if ( $value instanceof WP_Http_Cookie ) { $cookie_jar[ $value->name ] = new Requests_Cookie( $value->name, $value->value, $value->get_attributes() ); - } elseif ( is_string( $value ) ) { + } elseif ( is_scalar( $value ) ) { $cookie_jar[ $name ] = new Requests_Cookie( $name, $value ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 608a5676f4..8566a74da3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6.1-alpha-38460'; +$wp_version = '4.6.1-alpha-38461'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.