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
This commit is contained in:
John Blackbourn 2015-09-15 08:11:11 +00:00
parent 0402bac392
commit c0c2a76778
1 changed files with 1 additions and 1 deletions

View File

@ -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.