WordPress.org

Make WordPress Core

Changeset 29345


Ignore:
Timestamp:
08/01/2014 06:42:46 PM (5 years ago)
Author:
wonderboymusic
Message:

Revert [28640] as per @DH-Shredder.

See #24380.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor-gd.php

    r28879 r29345  
    384384                imagetruecolortopalette( $image, false, imagecolorstotal( $image ) );
    385385
    386             /*
    387              * Invert the 1-100 quality scale and constrain it to 0-9,
    388              * as per imagepng()'s peculiar quality parameter.
    389              */
    390             $compression_level = floor( ( 101 - $this->quality ) * 0.09 );
    391 
    392             if ( ! $this->make_image( $filename, 'imagepng', array( $image, $filename, $compression_level ) ) ) {
     386            if ( ! $this->make_image( $filename, 'imagepng', array( $image, $filename ) ) )
    393387                return new WP_Error( 'image_save_error', __('Image Editor Save Failed') );
    394             }
    395388        }
    396389        elseif ( 'image/jpeg' == $mime_type ) {
Note: See TracChangeset for help on using the changeset viewer.