Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:40:27 AM (7 years ago)
Author:
DrewAPicture
Message:

Docs: Remove @access notations from method DocBlocks in wp-includes/* classes.

Prior to about 2013, many class methods lacked even access modifiers which made the @access notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs.

See #41452.

File:
1 edited

Legend:

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

    r38730 r41162  
    2020     *
    2121     * @since 4.6.0
    22      * @access protected
    2322     * @var Requests_Response
    2423     */
     
    2928     *
    3029     * @since 4.6.0
    31      * @access protected
    3230     * @var string|null
    3331     */
     
    3836     *
    3937     * @since 4.6.0
    40      * @access public
    4138     *
    4239     * @param Requests_Response $response HTTP response.
     
    5249     *
    5350     * @since 4.6.0
    54      * @access public
    5551     *
    5652     * @return Requests_Response HTTP response.
     
    6460     *
    6561     * @since 4.6.0
    66      * @access public
    6762     *
    6863     * @see \Requests_Utility_CaseInsensitiveDictionary
     
    8984     *
    9085     * @since 4.6.0
    91      * @access public
    9286     *
    9387     * @param array $headers Map of header name to header value.
     
    10195     *
    10296     * @since 4.6.0
    103      * @access public
    10497     *
    10598     * @param string $key     Header name.
     
    120113     *
    121114     * @since 4.6.0
    122      * @access public
    123115     *
    124116     * @return int The 3-digit HTTP status code.
     
    132124     *
    133125     * @since 4.6.0
    134      * @access public
    135126     *
    136127     * @param int $code HTTP status.
     
    144135     *
    145136     * @since 4.6.0
    146      * @access public
    147137     *
    148138     * @return mixed Response data.
     
    156146     *
    157147     * @since 4.6.0
    158      * @access public
    159148     *
    160149     * @param mixed $data Response data.
     
    168157     *
    169158     * @since 4.6.0
    170      * @access public
    171159     *
    172160     * @return WP_HTTP_Cookie[] List of cookie objects.
     
    191179     *
    192180     * @since 4.6.0
    193      * @access public
    194181     *
    195182     * @return array WP_Http response array, per WP_Http::request().
Note: See TracChangeset for help on using the changeset viewer.