WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 6 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:

Description

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 10 months ago.
fixed the documents

Download all attachments as: .zip

Change History (5)

#1 @johnbillion
10 months ago

  • Keywords needs-patch good-first-bug added

#2 @desrosj
10 months ago

  • Milestone changed from Awaiting Review to 5.4

@takeshifurusato
10 months ago

fixed the documents

#3 @spenserhale
9 months ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
6 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.