Make WordPress Core

Changeset 52572


Ignore:
Timestamp:
01/13/2022 01:03:01 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r52441 r52572  
    241241 * Retrieve only the response code from the raw response.
    242242 *
    243  * Will return an empty array if incorrect parameter value is given.
     243 * Will return an empty string if incorrect parameter value is given.
    244244 *
    245245 * @since 2.7.0
     
    259259 * Retrieve only the response message from the raw response.
    260260 *
    261  * Will return an empty array if incorrect parameter value is given.
     261 * Will return an empty string if incorrect parameter value is given.
    262262 *
    263263 * @since 2.7.0
Note: See TracChangeset for help on using the changeset viewer.