Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#48351 closed enhancement (fixed)

Stricter docs for WP_Http::processResponse()

Reported by: marekdedic's profile marekdedic Owned by: sergeybiryukov's profile 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 4 years ago.
fixed the documents

Download all attachments as: .zip

Change History (5)

#1 @johnbillion
4 years ago

  • Keywords needs-patch good-first-bug added

#2 @desrosj
4 years ago

  • Milestone changed from Awaiting Review to 5.4

@takeshifurusato
4 years ago

fixed the documents

#3 @spenserhale
4 years ago

  • Keywords has-patch added; needs-patch removed

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