WordPress.org

Make WordPress Core

Ticket #28634: 28634-3.patch

File 28634-3.patch, 540 bytes (added by juliobox, 5 years ago)

Add a size parameter, filter in resize() instead of load()

  • class-wp-image-editor-imagick.php

     
    295295                                $size_data['crop'] = false;
    296296                        }
    297297
     298                        if ( ! apply_filters( 'keep_image_exif', true, $size_data ) ) {
     299                                $this->image->stripImage();
     300                        }
     301
    298302                        $resize_result = $this->resize( $size_data['width'], $size_data['height'], $size_data['crop'] );
    299303
    300304                        if( ! is_wp_error( $resize_result ) ) {