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-response.php

    r38315 r41162  
    1919     *
    2020     * @since 4.4.0
    21      * @access public
    2221     * @var mixed
    2322     */
     
    2827     *
    2928     * @since 4.4.0
    30      * @access public
    3129     * @var array
    3230     */
     
    3735     *
    3836     * @since 4.4.0
    39      * @access public
    4037     * @var int
    4138     */
     
    4643     *
    4744     * @since 4.4.0
    48      * @access public
    4945     *
    5046     * @param mixed $data    Response data. Default null.
     
    6258     *
    6359     * @since 4.4.0
    64      * @access public
    6560     *
    6661     * @return array Map of header name to header value.
     
    7469     *
    7570     * @since 4.4.0
    76      * @access public
    7771     *
    7872     * @param array $headers Map of header name to header value.
     
    8680     *
    8781     * @since 4.4.0
    88      * @access public
    8982     *
    9083     * @param string $key     Header name.
     
    10598     *
    10699     * @since 4.4.0
    107      * @access public
    108100     *
    109101     * @return int The 3-digit HTTP status code.
     
    117109     *
    118110     * @since 4.4.0
    119      * @access public
    120111     *
    121112     * @param int $code HTTP status.
     
    129120     *
    130121     * @since 4.4.0
    131      * @access public
    132122     *
    133123     * @return mixed Response data.
     
    141131     *
    142132     * @since 4.4.0
    143      * @access public
    144133     *
    145134     * @param mixed $data Response data.
     
    156145     *
    157146     * @since 4.4.0
    158      * @access public
    159147     *
    160148     * @return mixed Any JSON-serializable value.
Note: See TracChangeset for help on using the changeset viewer.