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-ms-users-list-table.php

    r41150 r41161  
    118118
    119119    /**
    120      * @access public
    121120     */
    122121    public function no_items() {
     
    201200     *
    202201     * @since 4.3.0
    203      * @access public
    204202     *
    205203     * @param WP_User $user The current WP_User object.
     
    219217     *
    220218     * @since 4.4.0
    221      * @access public
    222219     *
    223220     * @param WP_User $user The current WP_User object.
     
    231228     *
    232229     * @since 4.3.0
    233      * @access public
    234230     *
    235231     * @param WP_User $user The current WP_User object.
     
    254250     *
    255251     * @since 4.3.0
    256      * @access public
    257252     *
    258253     * @param WP_User $user The current WP_User object.
     
    270265     *
    271266     * @since 4.3.0
    272      * @access public
    273267     *
    274268     * @param WP_User $user The current WP_User object.
     
    282276     *
    283277     * @since 4.3.0
    284      * @access public
    285278     *
    286279     * @global string $mode List table view mode.
     
    300293    /**
    301294     * @since 4.3.0
    302      * @access protected
    303295     *
    304296     * @param WP_User $user
     
    318310     *
    319311     * @since 4.3.0
    320      * @access public
    321312     *
    322313     * @param WP_User $user The current WP_User object.
     
    383374     *
    384375     * @since 4.3.0
    385      * @access public
    386376     *
    387377     * @param WP_User $user       The current WP_User object.
     
    417407     *
    418408     * @since 4.3.0
    419      * @access protected
    420409     *
    421410     * @return string Name of the default primary column, in this case, 'username'.
     
    429418     *
    430419     * @since 4.3.0
    431      * @access protected
    432420     *
    433421     * @param object $user        User being acted upon.
Note: See TracChangeset for help on using the changeset viewer.