diff --git wp-includes/class-wp-image-editor-gd.php wp-includes/class-wp-image-editor-gd.php
index 92dd287..82626a0 100644
|
|
|
class WP_Image_Editor_GD extends WP_Image_Editor { |
| 176 | 176 | * @since 3.5.0 |
| 177 | 177 | * @access public |
| 178 | 178 | * |
| 179 | | * @param array $sizes { {width, height}, ... } |
| | 179 | * @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... } |
| 180 | 180 | * @return array |
| 181 | 181 | */ |
| 182 | 182 | public function multi_resize( $sizes ) { |
diff --git wp-includes/class-wp-image-editor-imagick.php wp-includes/class-wp-image-editor-imagick.php
index 02dfe03..a9982cd 100644
|
|
|
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
| 248 | 248 | * @since 3.5.0 |
| 249 | 249 | * @access public |
| 250 | 250 | * |
| 251 | | * @param array $sizes |
| | 251 | * @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... } |
| 252 | 252 | * @return array |
| 253 | 253 | */ |
| 254 | 254 | public function multi_resize( $sizes ) { |
diff --git wp-includes/class-wp-image-editor.php wp-includes/class-wp-image-editor.php
index dd4c678..481b2c1 100644
|
|
|
abstract class WP_Image_Editor { |
| 101 | 101 | * @access public |
| 102 | 102 | * @abstract |
| 103 | 103 | * |
| 104 | | * @param array $sizes |
| | 104 | * @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... } |
| 105 | 105 | * @return array |
| 106 | 106 | */ |
| 107 | 107 | abstract public function multi_resize( $sizes ); |
diff --git wp-includes/media.php wp-includes/media.php
index d2ae633..cebdae7 100644
|
|
|
function wp_constrain_dimensions( $current_width, $current_height, $max_width=0, |
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | /** |
| 297 | | * Retrieve calculated resized dimensions for use in imagecopyresampled(). |
| | 297 | * Retrieve calculated resized dimensions for use in WP_Image_Editor. |
| 298 | 298 | * |
| 299 | 299 | * Calculate dimensions and coordinates for a resized image that fits within a |
| 300 | 300 | * specified width and height. If $crop is true, the largest matching central |