Changeset 24055 for trunk/wp-includes/class-wp-image-editor-imagick.php
- Timestamp:
- 04/22/2013 08:28:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-image-editor-imagick.php
r23750 r24055 246 246 * multiple sizes from single source. 247 247 * 248 * @since 3.5.0 249 * @access public 250 * 251 * @param array $sizes { {'width'=>int, 'height'=>int, 'crop'=>bool}, ... } 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]}, ... } 252 255 * @return array 253 256 */ … … 260 263 if ( ! $this->image ) 261 264 $this->image = $orig_image->getImage(); 265 266 if ( ! ( isset( $size_data['width'] ) && isset( $size_data['height'] ) ) ) 267 continue; 268 269 if ( ! isset( $size_data['crop'] ) ) 270 $size_data['crop'] = false; 262 271 263 272 $resize_result = $this->resize( $size_data['width'], $size_data['height'], $size_data['crop'] );
Note: See TracChangeset
for help on using the changeset viewer.