Make WordPress Core


Ignore:
Timestamp:
10/08/2013 05:19:00 PM (11 years ago)
Author:
DrewAPicture
Message:

Improve inline documentation for the multi_resize() method in WP_Image_Editor, WP_Image_Editor_GD, and WP_Image_Editor_Imagick.

Props paolal for the initial patch.
Fixes #25530.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor-gd.php

    r24727 r25728  
    176176
    177177    /**
    178      * Processes current image and saves to disk
    179      * multiple sizes from single source.
    180      *
    181      * 'width' and 'height' are required.
    182      * 'crop' defaults to false when not provided.
    183      *
    184      * @since 3.5.0
    185      * @access public
    186      *
    187      * @param array $sizes { {'width'=>int, 'height'=>int, ['crop'=>bool]}, ... }
    188      * @return array
     178     * Resize multiple images from a single source.
     179     *
     180     * @since 3.5.0
     181     * @access public
     182     *
     183     * @param array $sizes {
     184     *     An array of image size arrays. Default sizes are 'small', 'medium', 'large'.
     185     *
     186     *     @type array $size {
     187     *         @type int  $width  Image width.
     188     *         @type int  $height Image height.
     189     *         @type bool $crop   Optional. Whether to crop the image. Default false.
     190     *     }
     191     * }
     192     * @return array An array of resized images metadata by size.
    189193     */
    190194    public function multi_resize( $sizes ) {
Note: See TracChangeset for help on using the changeset viewer.