mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Image editors: multi_resize() should require height and width. Crop is now optional and defaults to false. props DH-Shredder. fixes #23884.
git-svn-id: https://develop.svn.wordpress.org/trunk@24055 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -97,11 +97,14 @@ abstract class WP_Image_Editor {
|
||||
* Processes current image and saves to disk
|
||||
* multiple sizes from single source.
|
||||
*
|
||||
* 'width' and 'height' are required.
|
||||
* 'crop' defaults to false when not provided.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
* @abstract
|
||||
*
|
||||
* @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... }
|
||||
* @param array $sizes { {'width'=>int, 'height'=>int, ['crop'=>bool]}, ... }
|
||||
* @return array
|
||||
*/
|
||||
abstract public function multi_resize( $sizes );
|
||||
|
||||
Reference in New Issue
Block a user