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/rest-api/endpoints/class-wp-rest-post-statuses-controller.php

    r39954 r41162  
    2121     *
    2222     * @since 4.7.0
    23      * @access public
    2423     */
    2524    public function __construct() {
     
    3231     *
    3332     * @since 4.7.0
    34      * @access public
    3533     *
    3634     * @see register_rest_route()
     
    7169     *
    7270     * @since 4.7.0
    73      * @access public
    7471     *
    7572     * @param WP_REST_Request $request Full details about the request.
     
    9592     *
    9693     * @since 4.7.0
    97      * @access public
    9894     *
    9995     * @param WP_REST_Request $request Full details about the request.
     
    123119     *
    124120     * @since 4.7.0
    125      * @access public
    126121     *
    127122     * @param WP_REST_Request $request Full details about the request.
     
    148143     *
    149144     * @since 4.7.0
    150      * @access protected
    151145     *
    152146     * @param object $status Post status.
     
    175169     *
    176170     * @since 4.7.0
    177      * @access public
    178171     *
    179172     * @param WP_REST_Request $request Full details about the request.
     
    196189     *
    197190     * @since 4.7.0
    198      * @access public
    199191     *
    200192     * @param stdClass        $status  Post status data.
     
    244236     *
    245237     * @since 4.7.0
    246      * @access public
    247238     *
    248239     * @return array Item schema data.
     
    306297     *
    307298     * @since 4.7.0
    308      * @access public
    309299     *
    310300     * @return array Collection parameters.
Note: See TracChangeset for help on using the changeset viewer.