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
This commit is contained in:
Scott Taylor 2014-05-06 18:36:34 +00:00
parent 9ad07c8c28
commit 0f4f941900
1 changed files with 1 additions and 2 deletions

View File

@ -270,8 +270,7 @@ abstract class WP_Image_Editor {
* @return array { filename|null, extension, mime-type } * @return array { filename|null, extension, mime-type }
*/ */
protected function get_output_format( $filename = null, $mime_type = null ) { protected function get_output_format( $filename = null, $mime_type = null ) {
$new_ext = $file_ext = null; $new_ext = null;
$file_mime = null;
// By default, assume specified type takes priority // By default, assume specified type takes priority
if ( $mime_type ) { if ( $mime_type ) {