Pass $args and $url to the http_api_debug action to improve debugging. Props johnbillion. Fixes #18732
git-svn-id: http://svn.automattic.com/wordpress/trunk@18805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e30854e968
commit
08bea55949
|
@ -253,7 +253,7 @@ class WP_Http {
|
|||
|
||||
$response = $transports[$class]->request( $url, $args );
|
||||
|
||||
do_action( 'http_api_debug', $response, 'response', $class );
|
||||
do_action( 'http_api_debug', $response, 'response', $class, $args, $url );
|
||||
|
||||
if ( is_wp_error( $response ) )
|
||||
return $response;
|
||||
|
|
Loading…
Reference in New Issue