From c0c2a767787036e269227660c0f2458a5f01be77 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 15 Sep 2015 08:11:11 +0000 Subject: [PATCH] Place the filter docblock for `http_api_transports` immediately above the filter. See #33413 Props dd32 git-svn-id: https://develop.svn.wordpress.org/trunk@34174 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index 8422ca34af..886020ae26 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -299,6 +299,7 @@ class WP_Http { * @return string|false 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 ) { + $transports = array( 'curl', 'streams' ); /** * Filter which HTTP transports are available and in what order. * @@ -309,7 +310,6 @@ class WP_Http { * @param array $args HTTP request arguments. * @param string $url The URL to request. */ - $transports = array( 'curl', 'streams' ); $request_order = apply_filters( 'http_api_transports', $transports, $args, $url ); // Loop over each transport on each HTTP request looking for one which will serve this request's needs.