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

    r41125 r41162  
    1818     * Imagick object.
    1919     *
    20      * @access protected
    2120     * @var Imagick
    2221     */
     
    4039     *
    4140     * @static
    42      * @access public
    4341     *
    4442     * @param array $args
     
    9997     *
    10098     * @static
    101      * @access public
    10299     *
    103100     * @param string $mime_type
     
    127124     *
    128125     * @since 3.5.0
    129      * @access public
    130126     *
    131127     * @return true|WP_Error True if loaded; WP_Error on failure.
     
    182178     *
    183179     * @since 3.5.0
    184      * @access public
    185180     *
    186181     * @param int $quality Compression Quality. Range: [1,100]
     
    215210     *
    216211     * @since 3.5.0
    217      * @access protected
    218212     *
    219213     * @param int $width
     
    250244     *
    251245     * @since 3.5.0
    252      * @access public
    253246     *
    254247     * @param  int|null $max_w Image width.
     
    286279     *
    287280     * @since 4.5.0
    288      * @access protected
    289281     *
    290282     * @param int    $dst_w       The destination width.
     
    418410     *
    419411     * @since 3.5.0
    420      * @access public
    421412     *
    422413     * @param array $sizes {
     
    489480     *
    490481     * @since 3.5.0
    491      * @access public
    492482     *
    493483     * @param int  $src_x The start x position to crop from.
     
    536526     *
    537527     * @since 3.5.0
    538      * @access public
    539528     *
    540529     * @param float $angle
     
    571560     *
    572561     * @since 3.5.0
    573      * @access public
    574562     *
    575563     * @param bool $horz Flip along Horizontal Axis
     
    595583     *
    596584     * @since 3.5.0
    597      * @access public
    598585     *
    599586     * @param string $destfilename
     
    665652     *
    666653     * @since 3.5.0
    667      * @access public
    668654     *
    669655     * @param string $mime_type
     
    695681     *
    696682     * @since 4.5.0
    697      * @access protected
    698683     *
    699684     * @return true|WP_Error True if stripping metadata was successful. WP_Error object on error.
     
    748733     *
    749734     * @since 4.7.0
    750      * @access protected
    751735     *
    752736     * @return string|WP_Error File to load or WP_Error on failure.
Note: See TracChangeset for help on using the changeset viewer.