Make WordPress Core


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

    r39671 r41162  
    2222     *
    2323     * @since 4.7.0
    24      * @access protected
    2524     *
    2625     * @param array           $prepared_args Optional. Array of prepared arguments. Default empty array.
     
    6059     *
    6160     * @since 4.7.0
    62      * @access public
    6361     *
    6462     * @param WP_REST_Request $request Full details about the request.
     
    9391     *
    9492     * @since 4.7.0
    95      * @access public
    9693     *
    9794     * @param WP_REST_Request $request Full details about the request.
     
    201198     *
    202199     * @since 4.7.0
    203      * @access public
    204200     *
    205201     * @param WP_REST_Request $request Full details about the request.
     
    246242     *
    247243     * @since 4.7.0
    248      * @access public
    249244     *
    250245     * @param WP_REST_Request $request Request object.
     
    283278     *
    284279     * @since 4.7.0
    285      * @access public
    286280     *
    287281     * @param WP_Post         $post    Attachment object.
     
    376370     *
    377371     * @since 4.7.0
    378      * @access public
    379372     *
    380373     * @return array Item schema as an array.
     
    482475     *
    483476     * @since 4.7.0
    484      * @access protected
    485477     *
    486478     * @param array $data    Supplied file data.
     
    580572     *
    581573     * @since 4.7.0
    582      * @access public
    583574     *
    584575     * @link http://tools.ietf.org/html/rfc2388
     
    633624     *
    634625     * @since 4.7.0
    635      * @access public
    636626     *
    637627     * @return array Query parameters for the attachment collection as an array.
     
    663653     *
    664654     * @since 4.7.0
    665      * @access public
    666655     *
    667656     * @param mixed           $value     Status value.
     
    682671     *
    683672     * @since 4.7.0
    684      * @access protected
    685673     *
    686674     * @param array $files   Data from the `$_FILES` superglobal.
     
    732720     *
    733721     * @since 4.7.0
    734      * @access protected
    735722     *
    736723     * @return array Array of supported media types.
Note: See TracChangeset for help on using the changeset viewer.