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:
parent
9ad07c8c28
commit
0f4f941900
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue