Make WordPress Core

Ticket #28634: 28634-2.patch

File 28634-2.patch, 551 bytes (added by juliobox, 10 years ago)

Same with a filter to keep a retrocompatibility

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

     
    138138                catch ( Exception $e ) {
    139139                        return new WP_Error( 'invalid_image', $e->getMessage(), $this->file );
    140140                }
    141 
     141                if ( ! apply_filters( 'keep_image_exif', true ) ) {
     142                        $this->image->stripImage();
     143                }
    142144                $updated_size = $this->update_size();
    143145                if ( is_wp_error( $updated_size ) )
    144146                                return $updated_size;