WordPress.org

Make WordPress Core

Ticket #19931: diff19931.diff

File diff19931.diff, 601 bytes (added by bobbravo2, 6 years ago)
  • wp-includes/media.php

    diff --git a/wp-includes/media.php b/wp-includes/media.php
    index 89a3f36..b946553 100644
    a b function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $de 
    447447                $dir = $_dest_path;
    448448        $destfilename = "{$dir}/{$name}-{$suffix}.{$ext}";
    449449
     450        //Set Image Interlace Flag
     451        imageinterlace( $newimage, apply_filters( 'image_interlace', 0, $orig_type ) );
     452
    450453        if ( IMAGETYPE_GIF == $orig_type ) {
    451454                if ( !imagegif( $newimage, $destfilename ) )
    452455                        return new WP_Error('resize_path_invalid', __( 'Resize path invalid' ));