Opened 9 years ago
Closed 9 years ago
#33995 closed task (blessed) (fixed)
Clarify the expected return values of the pre_http_request filter
Reported by: | johnbillion | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 34509: