Add context to an internal HTTP API hook.

props kovshenin.
fixes #27021.


git-svn-id: https://develop.svn.wordpress.org/trunk@27475 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-03-08 21:53:51 +00:00
parent 036cb74d46
commit f6d9b60cd0
1 changed files with 4 additions and 2 deletions

View File

@ -1349,9 +1349,11 @@ class WP_Http_Curl {
* *
* @since 2.8.0 * @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. // We don't need to return the body, so don't. Just execute request and return.
if ( ! $r['blocking'] ) { if ( ! $r['blocking'] ) {