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-types-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()
     
    7068     *
    7169     * @since 4.7.0
    72      * @access public
    7370     *
    7471     * @param WP_REST_Request $request Full details about the request.
     
    9390     *
    9491     * @since 4.7.0
    95      * @access public
    9692     *
    9793     * @param WP_REST_Request $request Full details about the request.
     
    117113     *
    118114     * @since 4.7.0
    119      * @access public
    120115     *
    121116     * @param WP_REST_Request $request Full details about the request.
     
    146141     *
    147142     * @since 4.7.0
    148      * @access public
    149143     *
    150144     * @param stdClass        $post_type Post type data.
     
    203197     *
    204198     * @since 4.7.0
    205      * @access public
    206199     *
    207200     * @return array Item schema data.
     
    279272     *
    280273     * @since 4.7.0
    281      * @access public
    282274     *
    283275     * @return array Collection parameters.
Note: See TracChangeset for help on using the changeset viewer.