Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:39:34 AM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Remove @access notations from method DocBlocks in wp-admin/* 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-admin/includes/class-wp-site-icon.php

    r38355 r41161  
    1919     *
    2020     * @since 4.3.0
    21      * @access public
    2221     * @var int
    2322     */
     
    2827     *
    2928     * @since 4.3.0
    30      * @access public
    3129     * @var int
    3230     */
     
    3735     *
    3836     * @since 4.3.0
    39      * @access public
    4037     * @var array
    4138     */
     
    7168     *
    7269     * @since 4.3.0
    73      * @access public
    7470     */
    7571    public function __construct() {
     
    111107     *
    112108     * @since 4.3.0
    113      * @access public
    114109     *
    115110     * @param array  $object Attachment object.
     
    140135     *
    141136     * @since 4.3.0
    142      * @access public
    143137     *
    144138     * @param array $sizes List of additional sizes.
     
    185179     *
    186180     * @since 4.3.0
    187      * @access public
    188181     *
    189182     * @param array $sizes List of image sizes.
     
    204197     *
    205198     * @since 4.3.0
    206      * @access public
    207199     *
    208200     * @param int $post_id Attachment ID.
     
    220212     *
    221213     * @since 4.3.0
    222      * @access public
    223214     *
    224215     * @param null|array|string $value    The value get_metadata() should return a single metadata value, or an
Note: See TracChangeset for help on using the changeset viewer.