Revert isset check as it was previously
This commit is contained in:
parent
c8fa977453
commit
e128f774c4
|
@ -66,7 +66,7 @@ class WC_Regenerate_Images {
|
|||
|
||||
$size_settings = wc_get_image_size( $size );
|
||||
|
||||
if ( in_array( $size, array( 'woocommerce_thumbnail' ), true ) && isset( $imagemeta['sizes'] ) ) {
|
||||
if ( in_array( $size, array( 'woocommerce_thumbnail' ), true ) && isset( $imagemeta['sizes'], $imagemeta['sizes'][ $size ] ) ) {
|
||||
if ( $imagemeta['sizes'][ $size ]['width'] !== $size_settings['width'] || $imagemeta['sizes'][ $size ]['height'] !== $size_settings['height'] ) {
|
||||
$image = self::resize_and_return_image( $attachment_id, $image, $size, $icon );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue