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
This commit is contained in:
Sergey Biryukov 2022-01-13 01:03:01 +00:00
parent b38c2fb5e9
commit 7f2ddd0ae6

View File

@ -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
*