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

    r25714 r25728  
    9595
    9696    /**
    97      * Processes current image and saves to disk
    98      * multiple sizes from single source.
    99      *
    100      * 'width' and 'height' are required.
    101      * 'crop' defaults to false when not provided.
    102      *
    103      * @since 3.5.0
    104      * @access public
    105      * @abstract
    106      *
    107      * @param array $sizes { {'width'=>int, 'height'=>int, ['crop'=>bool]}, ... }
    108      * @return array
     97     * Resize multiple images from a single source.
     98     *
     99     * @since 3.5.0
     100     * @access public
     101     * @abstract
     102     *
     103     * @param array $sizes {
     104     *     An array of image size arrays. Default sizes are 'small', 'medium', 'large'.
     105     *
     106     *     @type array $size {
     107     *         @type int  $width  Image width.
     108     *         @type int  $height Image height.
     109     *         @type bool $crop   Optional. Whether to crop the image. Default false.
     110     *     }
     111     * }
     112     * @return array An array of resized images metadata by size.
    109113     */
    110114    abstract public function multi_resize( $sizes );
Note: See TracChangeset for help on using the changeset viewer.