Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:40:27 AM (8 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-roles.php

    r39088 r41162  
    2929     *
    3030     * @since 2.0.0
    31      * @access public
    3231     * @var array
    3332     */
     
    3837     *
    3938     * @since 2.0.0
    40      * @access public
    4139     * @var array
    4240     */
     
    4745     *
    4846     * @since 2.0.0
    49      * @access public
    5047     * @var array
    5148     */
     
    5653     *
    5754     * @since 2.0.0
    58      * @access public
    5955     * @var string
    6056     */
     
    6561     *
    6662     * @since 2.1.0
    67      * @access public
    6863     * @var bool
    6964     */
     
    8378     *
    8479     * @since 4.0.0
    85      * @access public
    8680     *
    8781     * @param callable $name      Method to call.
     
    10498     *
    10599     * @since 2.1.0
    106      * @access protected
    107100     *
    108101     * @global array $wp_user_roles Used to set the 'roles' property value.
     
    147140     * @since 3.5.0
    148141     * @deprecated 4.7.0 Use new WP_Roles()
    149      * @access public
    150142     */
    151143    public function reinit() {
     
    163155     *
    164156     * @since 2.0.0
    165      * @access public
    166157     *
    167158     * @param string $role Role name.
     
    190181     *
    191182     * @since 2.0.0
    192      * @access public
    193183     *
    194184     * @param string $role Role name.
     
    213203     *
    214204     * @since 2.0.0
    215      * @access public
    216205     *
    217206     * @param string $role Role name.
     
    232221     *
    233222     * @since 2.0.0
    234      * @access public
    235223     *
    236224     * @param string $role Role name.
     
    250238     *
    251239     * @since 2.0.0
    252      * @access public
    253240     *
    254241     * @param string $role Role name.
     
    266253     *
    267254     * @since 2.0.0
    268      * @access public
    269255     *
    270256     * @return array List of role names.
     
    278264     *
    279265     * @since 2.0.0
    280      * @access public
    281266     *
    282267     * @param string $role Role name to look up.
Note: See TracChangeset for help on using the changeset viewer.