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/class-wp-image-editor-gd.php

    r41125 r41162  
    1818     * GD Resource.
    1919     *
    20      * @access protected
    2120     * @var resource
    2221     */
     
    3635     *
    3736     * @static
    38      * @access public
    3937     *
    4038     * @param array $args
     
    6260     *
    6361     * @static
    64      * @access public
    6562     *
    6663     * @param string $mime_type
     
    8582     *
    8683     * @since 3.5.0
    87      * @access public
    8884     *
    8985     * @return bool|WP_Error True if loaded successfully; WP_Error on failure.
     
    123119     *
    124120     * @since 3.5.0
    125      * @access protected
    126121     *
    127122     * @param int $width
     
    148143     *
    149144     * @since 3.5.0
    150      * @access public
    151145     *
    152146     * @param  int|null $max_w Image width.
     
    201195     *
    202196     * @since 3.5.0
    203      * @access public
    204197     *
    205198     * @param array $sizes {
     
    264257     *
    265258     * @since 3.5.0
    266      * @access public
    267259     *
    268260     * @param int  $src_x   The start x position to crop from.
     
    310302     *
    311303     * @since 3.5.0
    312      * @access public
    313304     *
    314305     * @param float $angle
     
    336327     *
    337328     * @since 3.5.0
    338      * @access public
    339329     *
    340330     * @param bool $horz Flip along Horizontal Axis
     
    366356     *
    367357     * @since 3.5.0
    368      * @access public
    369358     *
    370359     * @param string|null $filename
     
    440429     *
    441430     * @since 3.5.0
    442      * @access public
    443431     *
    444432     * @param string $mime_type
     
    465453     *
    466454     * @since 3.5.0
    467      * @access protected
    468455     *
    469456     * @param string|stream $filename
Note: See TracChangeset for help on using the changeset viewer.