From a23dfdab9c5767e258aac4f53c8ccabd901601b7 Mon Sep 17 00:00:00 2001 From: "Ivan@Kruchkoff.com" Date: Thu, 23 Mar 2017 12:54:13 -0300 Subject: [PATCH] Fix #2 as thumbnail sizes may be missing due to smaller image dimensions --- src/Media_Command.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Media_Command.php b/src/Media_Command.php index 2d68c81bd..7c645f5c2 100644 --- a/src/Media_Command.php +++ b/src/Media_Command.php @@ -372,10 +372,6 @@ private function needs_regeneration( $att_id, $fullsizepath ) { return true; } - if ( array_diff( get_intermediate_image_sizes(), array_keys( $metadata['sizes'] ) ) ) { - return true; - } - foreach( $metadata['sizes'] as $size_info ) { $intermediate_path = $dir_path . $size_info['file'];