[wp-trac] [WordPress Trac] #33995: Clarify the expected return values of the pre_http_request filter
WordPress Trac
noreply at wordpress.org
Thu Sep 24 18:51:15 UTC 2015
#33995: Clarify the expected return values of the pre_http_request filter
----------------------------+---------------------------
Reporter: johnbillion | Owner: DrewAPicture
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 4.4
Component: HTTP API | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
----------------------------+---------------------------
Changes (by DrewAPicture):
* owner: => DrewAPicture
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"34509"]:
{{{
#!CommitTicketReference repository="" revision="34509"
Docs: Improve the summary and description for the `pre_http_request`
filter docs to better illustrate expected values.
The filter explicitly expects one of three passed value types:
* An array containing 'headers', 'body', 'response', 'cookies', and
'filename' elements
* A `WP_Error` instance
* Boolean false (to avoid short-circuiting the response)
Props johnbillion.
Fixes #33995.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33995#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list