Skip to content

Deal with the case of WP_Http::request() returning before applying http_api_debug #11

@pbiron

Description

@pbiron

Currently, if an active plugin hooks into pre_http_request and returns a truthy value, then WP_Http::request() will return before applying http_api_debug. As a result, Plugin::capture_request_response() will not be called it's hooked to http_api_debug.

I think we can also hook into pre_http_request and do the capture there, but it will take some investigation to make sure that works correctly (i.e., I'll need to find a "real world" example of something hooking into pre_http_request to short circuit the request).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions