From 0f4f941900c8a4b22acc1fb94051bd6d4f212df4 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 18:36:34 +0000 Subject: [PATCH] In `WP_Image_Editor::get_output_format()`, `$file_mime` and `$file_ext` are set twice before they are used. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28320 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-image-editor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-image-editor.php b/src/wp-includes/class-wp-image-editor.php index 5affba48c7..f89f7fe35b 100644 --- a/src/wp-includes/class-wp-image-editor.php +++ b/src/wp-includes/class-wp-image-editor.php @@ -270,8 +270,7 @@ abstract class WP_Image_Editor { * @return array { filename|null, extension, mime-type } */ protected function get_output_format( $filename = null, $mime_type = null ) { - $new_ext = $file_ext = null; - $file_mime = null; + $new_ext = null; // By default, assume specified type takes priority if ( $mime_type ) {