Changeset 28879 for trunk/src/wp-includes/class-wp-image-editor-gd.php
- Timestamp:
- 06/28/2014 03:49:55 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-gd.php
r28640 r28879 115 115 $this->mime_type = $size['mime']; 116 116 117 return $this->set_quality( $this->quality );117 return true; 118 118 } 119 119 … … 395 395 } 396 396 elseif ( 'image/jpeg' == $mime_type ) { 397 if ( ! $this->make_image( $filename, 'imagejpeg', array( $image, $filename, $this-> quality) ) )397 if ( ! $this->make_image( $filename, 'imagejpeg', array( $image, $filename, $this->get_quality() ) ) ) 398 398 return new WP_Error( 'image_save_error', __('Image Editor Save Failed') ); 399 399 } … … 443 443 default: 444 444 header( 'Content-Type: image/jpeg' ); 445 return imagejpeg( $this->image, null, $this-> quality);445 return imagejpeg( $this->image, null, $this->get_quality() ); 446 446 } 447 447 }
Note: See TracChangeset
for help on using the changeset viewer.