WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/17/2017 05:05:03 AM (3 years ago)
Author:
dd32
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-requests-hooks.php

    r39212 r40068  
    5555            case 'curl.before_send':
    5656                /** This action is documented in wp-includes/class-wp-http-curl.php */
    57                 do_action_ref_array( 'http_api_curl', array( $parameters[0], $this->request, $this->url ) );
     57                do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url ) );
    5858                break;
    5959        }
Note: See TracChangeset for help on using the changeset viewer.