Make WordPress Core

Opened 2 weeks ago

Closed 2 weeks ago

Last modified 2 weeks ago

#54796 closed defect (bug) (fixed)

Minor documentation error

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

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.


2 weeks ago

  • Keywords has-patch added

Fixes minor documentation issue described in ticket 54796.

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

#2 @johnbillion
2 weeks ago

  • Component changed from General to HTTP API
  • Milestone changed from Awaiting Review to 6.0
  • Version trunk deleted

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

#3 @SergeyBiryukov
2 weeks ago

Introduced in [8516].

#4 @SergeyBiryukov
2 weeks ago

  • Version set to 2.7

#5 @SergeyBiryukov
2 weeks ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

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.