Skip to content

Commit ab79356

Browse files
committed
Clean up one remaining use of mime_type_set which is no longer needed.
1 parent 2325da1 commit ab79356

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/wp-includes/class-wp-image-editor.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ abstract class WP_Image_Editor {
1515
protected $file = null;
1616
protected $size = null;
1717
protected $mime_type = null;
18-
protected $mime_type_set = false;
1918
protected $output_mime_type = null;
2019
protected $default_mime_type = 'image/jpeg';
2120
protected $quality = false;
@@ -351,7 +350,7 @@ protected function get_output_format( $filename = null, $mime_type = null ) {
351350
} else {
352351
// If no file specified, grab editor's current extension and mime-type.
353352
$file_ext = strtolower( pathinfo( $this->file, PATHINFO_EXTENSION ) );
354-
$file_mime = ! $this->mime_type_set ? $this->mime_type : $this->get_mime_type( $file_ext );
353+
$file_mime = $this->mime_type;
355354
}
356355

357356
// Check to see if specified mime-type is the same as type implied by

0 commit comments

Comments
 (0)