From 7f2ddd0ae6f128d4292d7cbd20d9e359bb176609 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 13 Jan 2022 01:03: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. git-svn-id: https://develop.svn.wordpress.org/trunk@52572 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/http.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/http.php b/src/wp-includes/http.php index 4981875968..c543956947 100644 --- a/src/wp-includes/http.php +++ b/src/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 *