Make WordPress Core


Ignore:
Timestamp:
11/13/2016 10:35:15 AM (7 years ago)
Author:
dd32
Message:

WP_HTTP: Map internal Requests hooks to WordPress actions.
This change introduces a requests-{$hook} action which can be used to hook into Requests hooks, and restores the http_api_curl action.

Props rmccue.
Fixes #37843.

File:
1 edited

Legend:

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

    r38894 r39212  
    301301            'useragent' => $r['user-agent'],
    302302            'blocking' => $r['blocking'],
    303             'hooks' => new Requests_Hooks(),
     303            'hooks' => new WP_HTTP_Requests_Hooks( $url, $r ),
    304304        );
    305305
Note: See TracChangeset for help on using the changeset viewer.