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

    r39161 r41162  
    1919     *
    2020     * @since 4.7.0
    21      * @access protected
    2221     * @var string
    2322     */
     
    2827     *
    2928     * @since 4.7.0
    30      * @access protected
    3129     * @var string
    3230     */
     
    3735     *
    3836     * @since 4.7.0
    39      * @access public
    4037     */
    4138    public function register_routes() {
     
    4744     *
    4845     * @since 4.7.0
    49      * @access public
    5046     *
    5147     * @param WP_REST_Request $request Full data about the request.
     
    6056     *
    6157     * @since 4.7.0
    62      * @access public
    6358     *
    6459     * @param WP_REST_Request $request Full data about the request.
     
    7368     *
    7469     * @since 4.7.0
    75      * @access public
    7670     *
    7771     * @param WP_REST_Request $request Full data about the request.
     
    8680     *
    8781     * @since 4.7.0
    88      * @access public
    8982     *
    9083     * @param WP_REST_Request $request Full data about the request.
     
    9992     *
    10093     * @since 4.7.0
    101      * @access public
    10294     *
    10395     * @param WP_REST_Request $request Full data about the request.
     
    112104     *
    113105     * @since 4.7.0
    114      * @access public
    115106     *
    116107     * @param WP_REST_Request $request Full data about the request.
     
    125116     *
    126117     * @since 4.7.0
    127      * @access public
    128118     *
    129119     * @param WP_REST_Request $request Full data about the request.
     
    138128     *
    139129     * @since 4.7.0
    140      * @access public
    141130     *
    142131     * @param WP_REST_Request $request Full data about the request.
     
    151140     *
    152141     * @since 4.7.0
    153      * @access public
    154142     *
    155143     * @param WP_REST_Request $request Full data about the request.
     
    164152     *
    165153     * @since 4.7.0
    166      * @access public
    167154     *
    168155     * @param WP_REST_Request $request Full data about the request.
     
    177164     *
    178165     * @since 4.7.0
    179      * @access public
    180166     *
    181167     * @param WP_REST_Request $request Request object.
     
    190176     *
    191177     * @since 4.7.0
    192      * @access public
    193178     *
    194179     * @param mixed           $item    WordPress representation of the item.
     
    204189     *
    205190     * @since 4.7.0
    206      * @access public
    207191     *
    208192     * @param WP_REST_Response $response Response object.
     
    234218     *
    235219     * @since 4.7.0
    236      * @access public
    237220     *
    238221     * @param array  $data    Response data to fiter.
     
    276259     *
    277260     * @since 4.7.0
    278      * @access public
    279261     *
    280262     * @return array Item schema data.
     
    288270     *
    289271     * @since 4.7.0
    290      * @access public
    291272     *
    292273     * @return array Public item schema data.
     
    307288     *
    308289     * @since 4.7.0
    309      * @access public
    310290     *
    311291     * @return array Query parameters for the collection.
     
    346326     *
    347327     * @since 4.7.0
    348      * @access public
    349328     *
    350329     * @param array $args Optional. Additional arguments for context parameter. Default empty array.
     
    385364     *
    386365     * @since 4.7.0
    387      * @access protected
    388366     *
    389367     * @param array           $object  Data object.
     
    411389     *
    412390     * @since 4.7.0
    413      * @access protected
    414391     *
    415392     * @param array           $object  Data Object.
     
    446423     *
    447424     * @since 4.7.0
    448      * @access protected
    449425     *
    450426     * @param array $schema Schema array.
     
    476452     *
    477453     * @since 4.7.0
    478      * @access protected
    479454     *
    480455     * @param  string $object_type Optional. The object type.
     
    505480     *
    506481     * @since 4.7.0
    507      * @access protected
    508482     *
    509483     * @return string Object type for the controller.
     
    523497     *
    524498     * @since 4.7.0
    525      * @access public
    526499     *
    527500     * @param string $method Optional. HTTP method of the request. The arguments for `CREATABLE` requests are
     
    585558     *
    586559     * @since 4.7.0
    587      * @access public
    588560     *
    589561     * @internal We can't use sanitize_title() directly, as the second
Note: See TracChangeset for help on using the changeset viewer.