Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:39:34 AM (9 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-posts-list-table.php

    r40882 r41161  
    2323     * @since 3.1.0
    2424     * @var bool
    25      * @access protected
    2625     */
    2726    protected $hierarchical_display;
     
    3231     * @since 3.1.0
    3332     * @var array
    34      * @access protected
    3533     */
    3634    protected $comment_pending_count;
     
    4139     * @since 3.1.0
    4240     * @var int
    43      * @access private
    4441     */
    4542    private $user_posts_count;
     
    5047     * @since 3.1.0
    5148     * @var int
    52      * @access private
    5349     */
    5450    private $sticky_posts_count = 0;
     
    6056     *
    6157     * @since 4.3.0
    62      * @access protected
    6358     * @var int
    6459     */
     
    6964     *
    7065     * @since 3.1.0
    71      * @access public
    7266     *
    7367     * @see WP_List_Table::__construct() for more information on default arguments.
     
    197191
    198192    /**
    199      * @access public
    200193     */
    201194    public function no_items() {
     
    230223     *
    231224     * @since 4.4.0
    232      * @access protected
    233225     *
    234226     * @param array  $args  URL parameters for the link.
     
    416408     *
    417409     * @since 4.6.0
    418      * @access protected
    419410     *
    420411     * @global int $cat Currently selected category.
     
    827818     *
    828819     * @since 4.3.0
    829      * @access public
    830820     *
    831821     * @param WP_Post $post The current WP_Post object.
     
    852842    /**
    853843     * @since 4.3.0
    854      * @access protected
    855844     *
    856845     * @param WP_Post $post
     
    870859     *
    871860     * @since 4.3.0
    872      * @access public
    873861     *
    874862     * @global string $mode List table view mode.
     
    967955     *
    968956     * @since 4.3.0
    969      * @access public
    970957     *
    971958     * @global string $mode List table view mode.
     
    10481035     *
    10491036     * @since 4.3.0
    1050      * @access public
    10511037     *
    10521038     * @param WP_Post $post The current WP_Post object.
     
    10681054     *
    10691055     * @since 4.3.0
    1070      * @access public
    10711056     *
    10721057     * @param WP_Post $post The current WP_Post object.
     
    10841069     *
    10851070     * @since 4.3.0
    1086      * @access public
    10871071     *
    10881072     * @param WP_Post $post        The current WP_Post object.
     
    12101194     *
    12111195     * @since 4.3.0
    1212      * @access protected
    12131196     *
    12141197     * @return string Name of the default primary column, in this case, 'title'.
     
    12221205     *
    12231206     * @since 4.3.0
    1224      * @access protected
    12251207     *
    12261208     * @param object $post        Post being acted upon.
Note: See TracChangeset for help on using the changeset viewer.