Make WordPress Core

Changeset 36367


Ignore:
Timestamp:
01/20/2016 06:45:04 PM (9 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r36294 r36367  
    360360     *
    361361     * @since 3.2.0
    362      * @access private
     362     * @access public
    363363     *
    364364     * @param array $args Request arguments
     
    369369    public function _get_first_available_transport( $args, $url = null ) {
    370370        $transports = array( 'curl', 'streams' );
     371
    371372        /**
    372373         * Filter which HTTP transports are available and in what order.
Note: See TracChangeset for help on using the changeset viewer.