Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:39:34 AM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Remove @access notations from method DocBlocks in wp-admin/* 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-admin/includes/class-wp-upgrader-skin.php

    r41108 r41161  
    2424     *
    2525     * @since 2.8.0
    26      * @access public
    2726     * @var string|bool|WP_Error
    2827     */
     
    3130
    3231    /**
    33      * @access public
    3432     *
    3533     * @param array $args
     
    4139
    4240    /**
    43      * @access public
    4441     *
    4542     * @param WP_Upgrader $upgrader
     
    5249
    5350    /**
    54      * @access public
    5551     */
    5652    public function add_strings() {
     
    6157     *
    6258     * @since 2.8.0
    63      * @access public
    6459     *
    6560     * @param string|bool|WP_Error $result The result of an upgrade.
     
    7570     * @since 2.8.0
    7671     * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string.
    77      * @access public
    7872     *
    7973     * @see request_filesystem_credentials()
     
    10195
    10296    /**
    103      * @access public
    10497     */
    10598    public function header() {
     
    113106
    114107    /**
    115      * @access public
    116108     */
    117109    public function footer() {
     
    124116
    125117    /**
    126      * @access public
    127118     *
    128119     * @param string|WP_Error $errors
     
    144135
    145136    /**
    146      * @access public
    147137     *
    148138     * @param string $string
     
    167157
    168158    /**
    169      * @access public
    170159     */
    171160    public function before() {}
    172161
    173162    /**
    174      * @access public
    175163     */
    176164    public function after() {}
     
    180168     *
    181169     * @since 3.9.0
    182      * @access protected
    183170     *
    184171     * @param string $type Type of update count to decrement. Likely values include 'plugin',
     
    208195
    209196    /**
    210      * @access public
    211197     */
    212198    public function bulk_header() {}
    213199
    214200    /**
    215      * @access public
    216201     */
    217202    public function bulk_footer() {}
Note: See TracChangeset for help on using the changeset viewer.