[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 16:39:16 UTC 2015
#33995: Clarify the expected return values of the pre_http_request filter
----------------------------+-----------------
Reporter: johnbillion | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 4.4
Component: HTTP API | Version:
Severity: normal | Keywords:
Focuses: docs |
----------------------------+-----------------
I've seen several instances where the `pre_http_request` filter is used,
and its return value is set to something other than a `WP_Error` or an
array that looks like an HTTP API response. Returning such values (for
example, boolean `true`) results in unexpected behaviour, so the
documentation should be updated to clarify this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33995>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list