Skip to content

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

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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