[wp-trac] [WordPress Trac] #25747: The `http_api_debug` hook isn't called when there are no available transports
WordPress Trac
noreply at wordpress.org
Mon Oct 28 15:48:58 UTC 2013
#25747: The `http_api_debug` hook isn't called when there are no available
transports
--------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP | Version:
Severity: minor | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by johnbillion):
[attachment:25747.diff] (best viewed without whitespace changes) alters
`_dispatch_request()` so it doesn't return the `WP_Error` immediately. It
then gets passed to the `http_api_debug` hook as expected.
Anything that's hooking into this hook will need to ensure it handles
boolean `false` as the `$class` parameter, as well as a string.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25747#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list