WordPress.org

Make WordPress Core

Ticket #28634: 28634.diff

File 28634.diff, 660 bytes (added by wonderboymusic, 4 years ago)
  • src/wp-includes/class-wp-image-editor-imagick.php

     
    308308                                $size_data['crop'] = false;
    309309                        }
    310310
     311                        if ( ! apply_filters( 'keep_image_exif', true, $size_data ) ) {
     312                                $this->image->stripImage();
     313                        }
     314
    311315                        $resize_result = $this->resize( $size_data['width'], $size_data['height'], $size_data['crop'] );
    312316                        $duplicate = ( ( $orig_size['width'] == $size_data['width'] ) && ( $orig_size['height'] == $size_data['height'] ) );
    313317