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

    r40606 r41162  
    2121     *
    2222     * @since 4.7.0
    23      * @access protected
    2423     * @var string
    2524     */
     
    3029     *
    3130     * @since 4.7.0
    32      * @access protected
    3331     * @var WP_REST_Post_Meta_Fields
    3432     */
     
    3937     *
    4038     * @since 4.7.0
    41      * @access public
    4239     *
    4340     * @param string $post_type Post type.
     
    5653     *
    5754     * @since 4.7.0
    58      * @access public
    5955     *
    6056     * @see register_rest_route()
     
    127123     *
    128124     * @since 4.7.0
    129      * @access public
    130125     *
    131126     * @param  WP_REST_Request $request Full details about the request.
     
    147142     *
    148143     * @since 4.7.0
    149      * @access public
    150144     *
    151145     * @param WP_REST_Request $request Full details about the request.
     
    390384     *
    391385     * @since 4.7.0
    392      * @access public
    393386     *
    394387     * @param WP_REST_Request $request Full details about the request.
     
    431424     *
    432425     * @since 4.7.0
    433      * @access public
    434426     *
    435427     * @param WP_Post         $post    Post to check against.
     
    461453     *
    462454     * @since 4.7.0
    463      * @access public
    464455     *
    465456     * @param WP_REST_Request $request Full details about the request.
     
    486477     *
    487478     * @since 4.7.0
    488      * @access public
    489479     *
    490480     * @param WP_REST_Request $request Full details about the request.
     
    521511     *
    522512     * @since 4.7.0
    523      * @access public
    524513     *
    525514     * @param WP_REST_Request $request Full details about the request.
     
    625614     *
    626615     * @since 4.7.0
    627      * @access public
    628616     *
    629617     * @param WP_REST_Request $request Full details about the request.
     
    661649     *
    662650     * @since 4.7.0
    663      * @access public
    664651     *
    665652     * @param WP_REST_Request $request Full details about the request.
     
    749736     *
    750737     * @since 4.7.0
    751      * @access public
    752738     *
    753739     * @param WP_REST_Request $request Full details about the request.
     
    771757     *
    772758     * @since 4.7.0
    773      * @access public
    774759     *
    775760     * @param WP_REST_Request $request Full details about the request.
     
    861846     *
    862847     * @since 4.7.0
    863      * @access protected
    864848     *
    865849     * @param array           $prepared_args Optional. Prepared WP_Query arguments. Default empty array.
     
    908892     *
    909893     * @since 4.7.0
    910      * @access protected
    911894     *
    912895     * @param string      $date_gmt GMT publication time.
     
    933916     *
    934917     * @since 4.7.0
    935      * @access protected
    936918     *
    937919     * @param WP_REST_Request $request Request object.
     
    11071089     *
    11081090     * @since 4.7.0
    1109      * @access protected
    11101091     *
    11111092     * @param string $post_status Post status.
     
    11441125     *
    11451126     * @since 4.7.0
    1146      * @access protected
    11471127     *
    11481128     * @param int $featured_media Featured Media ID.
     
    11701150     *
    11711151     * @since 4.7.0
    1172      * @access public
    11731152     *
    11741153     * @param string  $template Page template filename.
     
    11871166     *
    11881167     * @since 4.7.0
    1189      * @access protected
    11901168     *
    11911169     * @param int             $post_id The post ID to update the terms form.
     
    12151193     *
    12161194     * @since 4.7.0
    1217      * @access protected
    12181195     *
    12191196     * @param WP_REST_Request $request The request object with post and terms data.
     
    12481225     *
    12491226     * @since 4.7.0
    1250      * @access protected
    12511227     *
    12521228     * @param object|string $post_type Post type name or object.
     
    12711247     *
    12721248     * @since 4.7.0
    1273      * @access public
    12741249     *
    12751250     * @param object $post Post object.
     
    13151290     *
    13161291     * @since 4.7.0
    1317      * @access protected
    13181292     *
    13191293     * @param object $post Post object.
     
    13341308     *
    13351309     * @since 4.7.0
    1336      * @access protected
    13371310     *
    13381311     * @param object $post Post object.
     
    13531326     *
    13541327     * @since 4.7.0
    1355      * @access protected
    13561328     *
    13571329     * @param object $post Post object.
     
    13721344     *
    13731345     * @since 4.7.0
    1374      * @access public
    13751346     *
    13761347     * @param WP_Post         $post    Post object.
     
    15891560     *
    15901561     * @since 4.7.0
    1591      * @access public
    15921562     *
    15931563     * @return string Protected title format.
     
    16011571     *
    16021572     * @since 4.7.0
    1603      * @access protected
    16041573     *
    16051574     * @param WP_Post $post Post object.
     
    17101679     *
    17111680     * @since 4.7.0
    1712      * @access public
    17131681     *
    17141682     * @return array Item schema data.
     
    20492017     *
    20502018     * @since 4.7.0
    2051      * @access public
    20522019     *
    20532020     * @return array Collection parameters.
     
    22442211     *
    22452212     * @since 4.7.0
    2246      * @access public
    22472213     *
    22482214     * @param  string|array    $statuses  One or more post statuses.
Note: See TracChangeset for help on using the changeset viewer.