Merge pull request #22638 from sultann/master

fix wrong variable checking
This commit is contained in:
Mike Jolley 2019-02-05 10:53:53 +00:00 committed by GitHub
commit 6a3d79f677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }