Make WordPress Core


Ignore:
Timestamp:
04/22/2013 08:28:05 PM (13 years ago)
Author:
nacin
Message:

Image editors: multi_resize() should require height and width. Crop is now optional and defaults to false. props DH-Shredder. fixes #23884.

File:
1 edited

Legend:

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

    r23750 r24055  
    9898     * multiple sizes from single source.
    9999     *
    100      * @since 3.5.0
    101      * @access public
    102      * @abstract
    103      *
    104      * @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... }
     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]}, ... }
    105108     * @return array
    106109     */
Note: See TracChangeset for help on using the changeset viewer.