diff --git src/wp-includes/class-wp-image-editor-imagick.php src/wp-includes/class-wp-image-editor-imagick.php
index 3d92d39..bd61e1c 100644
|
|
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
286 | 286 | * @param bool $strip_meta Optional. Strip all profiles, excluding color profiles, from the image. Default true. |
287 | 287 | * @return bool|WP_Error |
288 | 288 | */ |
289 | | protected function thumbnail_image( $dst_w, $dst_h, $filter_name = 'FILTER_TRIANGLE', $strip_meta = true ) { |
| 289 | protected function thumbnail_image( $dst_w, $dst_h, $filter_name = 'FILTER_BOX', $strip_meta = true ) { |
290 | 290 | $allowed_filters = array( |
291 | 291 | 'FILTER_POINT', |
292 | 292 | 'FILTER_BOX', |
… |
… |
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
312 | 312 | if ( in_array( $filter_name, $allowed_filters ) && defined( 'Imagick::' . $filter_name ) ) { |
313 | 313 | $filter = constant( 'Imagick::' . $filter_name ); |
314 | 314 | } else { |
315 | | $filter = defined( 'Imagick::FILTER_TRIANGLE' ) ? Imagick::FILTER_TRIANGLE : false; |
| 315 | $filter = defined( 'Imagick::FILTER_BOX' ) ? Imagick::FILTER_TRIANGLE : false; |
316 | 316 | } |
317 | 317 | |
318 | 318 | /** |