[wp-trac] [WordPress Trac] #33055: Support Parallel HTTP Requests in WP_Http, et al
WordPress Trac
noreply at wordpress.org
Mon May 16 02:29:41 UTC 2016
#33055: Support Parallel HTTP Requests in WP_Http, et al
------------------------------------------+--------------------------
Reporter: wonderboymusic | Owner: rmccue
Type: task (blessed) | Status: assigned
Priority: high | Milestone: 4.6
Component: HTTP API | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch early | Focuses: performance
------------------------------------------+--------------------------
Comment (by kraftbj):
`Fatal error: Cannot use object of type Requests_Response as array in
/home/kraftbj/public_html/wp-includes/http.php on line 255`
That line in http.php: `if ( is_wp_error($response) || !
isset($response['response']) || ! is_array($response['response']))` of
`wp_remote_retrieve_response_code`.
Making Requests_Response `implements ArrayAccess` and adding the needed
functions seem to resolve it for me, but unfamiliar with the internals of
Requests to know if that's a feasible solution or just duct tape.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33055#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list