[wp-trac] [WordPress Trac] #48350: Stricter docs for WP_Http::processHeaders()
WordPress Trac
noreply at wordpress.org
Thu Oct 17 12:33:51 UTC 2019
#48350: Stricter docs for WP_Http::processHeaders()
-------------------------+-----------------------------
Reporter: marekdedic | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 5.2
Severity: minor | Keywords:
Focuses: docs |
-------------------------+-----------------------------
I believe the function could better document the parameter and return
types. From a look at the source, maybe something like this:
{{{
@param string|string[] $headers
@param string $url
@return array {
@type array $response {
@type int $code
@type string $message
}
@type string|string[] $newheaders
@type WP_Http_Cookie[] $cookies
}
}}}
+ comments obviously.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48350>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list