Make WordPress Core

Opened 2 years ago

Closed 21 months ago

#48351 closed enhancement (fixed)

Stricter docs for WP_Http::processResponse()

Reported by: marekdedic Owned by: SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: minor Version: 5.2
Component: HTTP API Keywords: good-first-bug has-patch
Focuses: docs Cc:


I believe the function could better document the and return type. From a look at the source, maybe something like this:

@return array {
    @type string $headers
    @type string $body

+ comments obviously.

Attachments (1)

48351.diff (678 bytes) - added by takeshifurusato 2 years ago.
fixed the documents

Download all attachments as: .zip

Change History (5)

#1 @johnbillion
2 years ago

  • Keywords needs-patch good-first-bug added

#2 @desrosj
2 years ago

  • Milestone changed from Awaiting Review to 5.4

2 years ago

fixed the documents

#3 @spenserhale
2 years ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
21 months ago

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

In 47161:

Docs: Add more specific description for WP_Http::processResponse() return value.

Props marekdedic, takeshifurusato.
Fixes #48351.

Note: See TracTickets for help on using tickets.