Add context to an internal HTTP API hook.
props kovshenin. fixes #27021. Built from https://develop.svn.wordpress.org/trunk@27475 git-svn-id: http://core.svn.wordpress.org/trunk@27319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da19fc531c
commit
755018876c
|
@ -1349,9 +1349,11 @@ class WP_Http_Curl {
|
|||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param array $handle cURL options set using curl_setopt().
|
||||
* @param resource &$handle The cURL handle returned by curl_init().
|
||||
* @param array $r The HTTP request arguments.
|
||||
* @param string $url The destination URL.
|
||||
*/
|
||||
do_action_ref_array( 'http_api_curl', array(&$handle) );
|
||||
do_action_ref_array( 'http_api_curl', array( &$handle, $r, $url ) );
|
||||
|
||||
// We don't need to return the body, so don't. Just execute request and return.
|
||||
if ( ! $r['blocking'] ) {
|
||||
|
|
Loading…
Reference in New Issue