From e840d56df528506e14fc014888596335efa92915 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 13 Jan 2022 01:04:01 +0000 Subject: [PATCH] Docs: Correct description for two HTTP API functions: * `wp_remote_retrieve_response_code()` * `wp_remote_retrieve_response_message()` If incorrect parameter value is given, these functions return an empty string, not an empty array. Follow-up to [8516]. Props chesio, johnbillion. Fixes #54796. Built from https://develop.svn.wordpress.org/trunk@52572 git-svn-id: http://core.svn.wordpress.org/trunk@52162 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 4981875968..c543956947 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -240,7 +240,7 @@ function wp_remote_retrieve_header( $response, $header ) { /** * Retrieve only the response code from the raw response. * - * Will return an empty array if incorrect parameter value is given. + * Will return an empty string if incorrect parameter value is given. * * @since 2.7.0 * @@ -258,7 +258,7 @@ function wp_remote_retrieve_response_code( $response ) { /** * Retrieve only the response message from the raw response. * - * Will return an empty array if incorrect parameter value is given. + * Will return an empty string if incorrect parameter value is given. * * @since 2.7.0 * diff --git a/wp-includes/version.php b/wp-includes/version.php index 7a2a3a6136..bdaed4268b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52571'; +$wp_version = '6.0-alpha-52572'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.