From 832197c6e64ebfea85df5a75ff5afc16d70928b3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 20 Jan 2016 18:45:04 +0000 Subject: [PATCH] Docs: Update the `@access` tag value for `WP_Http::_get_first_available_transport()` from `private` to `public`. When the method was introduced in [17914], the name was underscore-prefixed as is core style for private-use, though it was also introduced with a `public` access modifier for the declaration. Due to core's committment to backward-compatibility, the access modifier overrules in this case, meaning that while the method is underscore-prefixed and was originally-intentioned to be private, it is and always will be a public method, and the documentation should reflect that. Props Frozzare. Fixes #35289. git-svn-id: https://develop.svn.wordpress.org/trunk@36367 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-http.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index ff69de3635..a74a20fd63 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -359,7 +359,7 @@ class WP_Http { * Tests which transports are capable of supporting the request. * * @since 3.2.0 - * @access private + * @access public * * @param array $args Request arguments * @param string $url URL to Request @@ -368,6 +368,7 @@ class WP_Http { */ public function _get_first_available_transport( $args, $url = null ) { $transports = array( 'curl', 'streams' ); + /** * Filter which HTTP transports are available and in what order. *