diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index 0bb0e43d87..a03c2c8bcf 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -214,7 +214,7 @@ class WP_Http { * @return string|bool Class name for the first transport that claims to support the request. False if no transport claims to support the request. */ public function _get_first_available_transport( $args, $url = null ) { - $request_order = array( 'curl', 'streams', 'fsockopen' ); + $request_order = apply_filters( 'http_api_transports', array( 'curl', 'streams', 'fsockopen' ), $args, $url ); // Loop over each transport on each HTTP request looking for one which will serve this request's needs foreach ( $request_order as $transport ) {