From f6d9b60cd0a69bb5443af59b5a06a6b303589d31 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 8 Mar 2014 21:53:51 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-http.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index 0de574e68b..1b11222100 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -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'] ) {