Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#54796 closed defect (bug) (fixed)

Minor documentation error

Reported by: chesio Owned by: SergeyBiryukov
Priority: normal Milestone: 6.0
Component: HTTP API Version: 2.7
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

Both wp_remote_retrieve_response_code and wp_remote_retrieve_response_message functions return an empty string if incorrect parameter is given to them as the return value description correctly states, however function description mentions empty array in both cases.

Change History (6)

This ticket was mentioned in PR #2142 on WordPress/wordpress-develop by chesio.


5 years ago
#1

  • Keywords has-patch added

Fixes minor documentation issue described in ticket 54796.

Trac ticket: https://core.trac.wordpress.org/ticket/54796

#2 @johnbillion
5 years ago

  • Component GeneralHTTP API
  • Milestone Awaiting Review6.0
  • Version trunk

Thanks for the ticket and the PR @chesio . This looks good.

#3 @SergeyBiryukov
5 years ago

Introduced in [8516].

#4 @SergeyBiryukov
5 years ago

  • Version2.7

#5 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 52572:

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.

Note: See TracTickets for help on using tickets.