Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years 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:


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 years ago

  • Keywords has-patch added

Fixes minor documentation issue described in ticket 54796.

Trac ticket:

#2 @johnbillion
2 years 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 years ago

Introduced in [8516].

#4 @SergeyBiryukov
2 years ago

  • Version set to 2.7

#5 @SergeyBiryukov
2 years 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.