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-imagick.php

    r25636 r25728  
    243243
    244244    /**
    245      * Processes current image and saves to disk
    246      * multiple sizes from single source.
    247      *
    248      * 'width' and 'height' are required.
    249      * 'crop' defaults to false when not provided.
    250      *
    251      * @since 3.5.0
    252      * @access public
    253      *
    254      * @param array $sizes { {'width'=>int, 'height'=>int, ['crop'=>bool]}, ... }
    255      * @return array
     245     * Resize multiple images from a single source.
     246     *
     247     * @since 3.5.0
     248     * @access public
     249     *
     250     * @param array $sizes {
     251     *     An array of image size arrays. Default sizes are 'small', 'medium', 'large'.
     252     *
     253     *     @type array $size {
     254     *         @type int  $width  Image width.
     255     *         @type int  $height Image height.
     256     *         @type bool $crop   Optional. Whether to crop the image. Default false.
     257     *     }
     258     * }
     259     * @return array An array of resized images metadata by size.
    256260     */
    257261    public function multi_resize( $sizes ) {
Note: See TracChangeset for help on using the changeset viewer.