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
This commit is contained in:
Sergey Biryukov 2022-01-13 01:04:01 +00:00
parent b14d7a8149
commit e840d56df5
2 changed files with 3 additions and 3 deletions

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
*

View File

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