Changeset 29834 for trunk/src/wp-includes/class-wp-image-editor.php
- Timestamp:
- 10/04/2014 01:11:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor.php
r28879 r29834 237 237 */ 238 238 $quality = apply_filters( 'jpeg_quality', $quality, 'image_resize' ); 239 240 if ( ! $this->set_quality( $quality ) ) { 241 $this->quality = $this->default_quality;242 }239 } 240 241 if ( ! $this->set_quality( $quality ) ) { 242 $this->quality = $this->default_quality; 243 243 } 244 244 } … … 257 257 */ 258 258 public function set_quality( $quality = null ) { 259 if ( null === $quality ) { 260 $quality = $this->default_quality; 261 } 262 259 263 // Allow 0, but squash to 1 due to identical images in GD, and for backwards compatibility. 260 if ( $quality == 0) {264 if ( 0 === $quality ) { 261 265 $quality = 1; 262 266 }
Note: See TracChangeset
for help on using the changeset viewer.