mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@39212 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -300,7 +300,7 @@ class WP_Http {
|
||||
'timeout' => $r['timeout'],
|
||||
'useragent' => $r['user-agent'],
|
||||
'blocking' => $r['blocking'],
|
||||
'hooks' => new Requests_Hooks(),
|
||||
'hooks' => new WP_HTTP_Requests_Hooks( $url, $r ),
|
||||
);
|
||||
|
||||
// Ensure redirects follow browser behaviour.
|
||||
|
||||
Reference in New Issue
Block a user