Merge pull request #22638 from sultann/master
fix wrong variable checking
This commit is contained in:
commit
6a3d79f677
|
@ -100,7 +100,7 @@ class WC_Regenerate_Images {
|
||||||
public static function add_uncropped_metadata( $meta_data ) {
|
public static function add_uncropped_metadata( $meta_data ) {
|
||||||
$size_data = wc_get_image_size( 'woocommerce_thumbnail' );
|
$size_data = wc_get_image_size( 'woocommerce_thumbnail' );
|
||||||
if ( isset( $meta_data['sizes'], $meta_data['sizes']['woocommerce_thumbnail'] ) ) {
|
if ( isset( $meta_data['sizes'], $meta_data['sizes']['woocommerce_thumbnail'] ) ) {
|
||||||
$meta_data['sizes']['woocommerce_thumbnail']['uncropped'] = empty( $size_settings['height'] );
|
$meta_data['sizes']['woocommerce_thumbnail']['uncropped'] = empty( $size_data['height'] );
|
||||||
}
|
}
|
||||||
return $meta_data;
|
return $meta_data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue