WP_HTTP: Re-enable curl, it was accidentally left out of [25224]. See #25007 See #16606

Built from https://develop.svn.wordpress.org/trunk@25225


git-svn-id: http://core.svn.wordpress.org/trunk@25195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2013-09-04 04:50:08 +00:00
parent 3ac572867e
commit 19054801bf

View File

@ -215,7 +215,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 = apply_filters( 'http_api_transports', array( 'streams' ), $args, $url );
$request_order = apply_filters( 'http_api_transports', array( 'curl', 'streams' ), $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 ) {