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

    r40303 r41162  
    1818     *
    1919     * @since 4.7.0
    20      * @access public
    2120     * @var string
    2221     */
     
    2726     *
    2827     * @since 4.7.0
    29      * @access public
    3028     * @var string
    3129     */
     
    3634     *
    3735     * @since 4.7.0
    38      * @access public
    3936     * @var object
    4037     */
     
    4542     *
    4643     * @since 4.7.0
    47      * @access public
    4844     * @var string
    4945     */
     
    5450     *
    5551     * @since 4.7.0
    56      * @access public
    5752     * @var bool
    5853     */
     
    6358     *
    6459     * @since 4.7.0
    65      * @access public
    6660     * @var bool
    6761     */
     
    7266     *
    7367     * @since 4.7.0
    74      * @access public
    7568     * @var bool
    7669     */
     
    8174     *
    8275     * @since 4.7.0
    83      * @access public
    8476     * @var bool
    8577     */
     
    9284     *
    9385     * @since 4.7.0
    94      * @access public
    9586     * @var bool
    9687     */
     
    10192     *
    10293     * @since 4.7.0
    103      * @access public
    10494     * @var bool
    10595     */
     
    110100     *
    111101     * @since 4.7.0
    112      * @access public
    113102     * @var bool
    114103     */
     
    119108     *
    120109     * @since 4.7.0
    121      * @access public
    122110     * @var bool
    123111     */
     
    128116     *
    129117     * @since 4.7.0
    130      * @access public
    131118     * @var bool
    132119     */
     
    137124     *
    138125     * @since 4.7.0
    139      * @access public
    140126     * @var bool|callable
    141127     */
     
    146132     *
    147133     * @since 4.7.0
    148      * @access public
    149134     * @var array
    150135     */
     
    155140     *
    156141     * @since 4.7.0
    157      * @access public
    158142     * @var array
    159143     */
     
    164148     *
    165149     * @since 4.7.0
    166      * @access public
    167150     * @var array|false
    168151     */
     
    173156     *
    174157     * @since 4.7.0
    175      * @access public
    176158     * @var string|false
    177159     */
     
    182164     *
    183165     * @since 4.7.0
    184      * @access public
    185166     * @var callable
    186167     */
     
    194175     *
    195176     * @since 4.7.4
    196      * @access public
    197177     * @var bool $show_in_rest
    198178     */
     
    203183     *
    204184     * @since 4.7.4
    205      * @access public
    206185     * @var string|bool $rest_base
    207186     */
     
    214193     *
    215194     * @since 4.7.4
    216      * @access public
    217195     * @var string|bool $rest_controller_class
    218196     */
     
    223201     *
    224202     * @since 4.7.0
    225      * @access public
    226203     * @var bool
    227204     */
     
    232209     *
    233210     * @since 4.7.0
    234      * @access public
    235211     *
    236212     * @global WP $wp WP instance.
     
    251227     *
    252228     * @since 4.7.0
    253      * @access public
    254229     *
    255230     * @param array|string $object_type Name of the object type for the taxonomy object.
     
    383358     *
    384359     * @since 4.7.0
    385      * @access public
    386360     *
    387361     * @global WP $wp Current WordPress environment instance.
     
    412386     *
    413387     * @since 4.7.0
    414      * @access public
    415388     *
    416389     * @global WP $wp Current WordPress environment instance.
     
    436409     *
    437410     * @since 4.7.0
    438      * @access public
    439411     */
    440412    public function add_hooks() {
     
    446418     *
    447419     * @since 4.7.0
    448      * @access public
    449420     */
    450421    public function remove_hooks() {
Note: See TracChangeset for help on using the changeset viewer.