mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 23:24:34 +00:00
HTTP API: Restore backwards compatibility with the http_api_curl filter - it expects that the handle parameter is passed as a reference, however [39212] missed that.
Props pento. Fixes #39783. git-svn-id: https://develop.svn.wordpress.org/trunk@40068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -54,7 +54,7 @@ class WP_HTTP_Requests_Hooks extends Requests_Hooks {
|
||||
switch ( $hook ) {
|
||||
case 'curl.before_send':
|
||||
/** This action is documented in wp-includes/class-wp-http-curl.php */
|
||||
do_action_ref_array( 'http_api_curl', array( $parameters[0], $this->request, $this->url ) );
|
||||
do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url ) );
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user