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-settings-controller.php

    r39639 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()
     
    6058     *
    6159     * @since 4.7.0
    62      * @access public
    6360     *
    6461     * @param WP_REST_Request $request Full details about the request.
     
    7370     *
    7471     * @since 4.7.0
    75      * @access public
    7672     *
    7773     * @param WP_REST_Request $request Full details about the request.
     
    118114     *
    119115     * @since 4.7.0
    120      * @access protected
    121116     *
    122117     * @param mixed $value  Value to prepare.
     
    148143     *
    149144     * @since 4.7.0
    150      * @access public
    151145     *
    152146     * @param WP_REST_Request $request Full details about the request.
     
    218212     *
    219213     * @since 4.7.0
    220      * @access protected
    221214     *
    222215     * @return array Array of registered options.
     
    275268     *
    276269     * @since 4.7.0
    277      * @access public
    278270     *
    279271     * @return array Item schema data.
     
    307299     *
    308300     * @since 4.7.0
    309      * @access public
    310301     *
    311302     * @param  mixed           $value   The value for the setting.
Note: See TracChangeset for help on using the changeset viewer.