Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:40:27 AM (7 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-revisions-controller.php

    r40606 r41162  
    2121     *
    2222     * @since 4.7.0
    23      * @access private
    2423     * @var string
    2524     */
     
    3029     *
    3130     * @since 4.7.0
    32      * @access private
    3331     * @var WP_REST_Controller
    3432     */
     
    3937     *
    4038     * @since 4.7.0
    41      * @access private
    4239     * @var string
    4340     */
     
    4845     *
    4946     * @since 4.7.0
    50      * @access public
    5147     *
    5248     * @param string $parent_post_type Post type of the parent.
     
    6561     *
    6662     * @since 4.7.0
    67      * @access public
    6863     *
    6964     * @see register_rest_route()
     
    149144     *
    150145     * @since 4.7.0
    151      * @access public
    152146     *
    153147     * @param WP_REST_Request $request Full data about the request.
     
    194188     *
    195189     * @since 4.7.0
    196      * @access public
    197190     *
    198191     * @param WP_REST_Request $request Full data about the request.
     
    219212     *
    220213     * @since 4.7.0
    221      * @access public
    222214     *
    223215     * @param WP_REST_Request $request Full data about the request.
     
    232224     *
    233225     * @since 4.7.0
    234      * @access public
    235226     *
    236227     * @param WP_REST_Request $request Full data about the request.
     
    256247     *
    257248     * @since 4.7.0
    258      * @access public
    259249     *
    260250     * @param  WP_REST_Request $request Full details about the request.
     
    285275     *
    286276     * @since 4.7.0
    287      * @access public
    288277     *
    289278     * @param WP_REST_Request $request Full details about the request.
     
    332321     *
    333322     * @since 4.7.0
    334      * @access public
    335323     *
    336324     * @param WP_Post         $post    Post revision object.
     
    438426     *
    439427     * @since 4.7.0
    440      * @access protected
    441428     *
    442429     * @param string      $date_gmt GMT publication time.
     
    460447     *
    461448     * @since 4.7.0
    462      * @access public
    463449     *
    464450     * @return array Item schema data.
     
    548534     *
    549535     * @since 4.7.0
    550      * @access public
    551536     *
    552537     * @return array Collection parameters.
     
    562547     *
    563548     * @since 4.7.0
    564      * @access protected
    565549     *
    566550     * @param string  $excerpt The post excerpt.
Note: See TracChangeset for help on using the changeset viewer.