Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#54796 closed defect (bug) (fixed)

Minor documentation error

Reported by: chesio's profile chesio Owned by: sergeybiryukov's profile 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.


17 months 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
17 months 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
17 months ago

Introduced in [8516].

#4 @SergeyBiryukov
17 months ago

  • Version set to 2.7

#5 @SergeyBiryukov
17 months 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.