use empty to check to see if attributes for variations exist
Closes #8959
This commit is contained in:
parent
fa9c5480a9
commit
1f3e8b984e
|
@ -605,7 +605,7 @@ class WC_Meta_Box_Product_Data {
|
||||||
|
|
||||||
if ( $attributes ) {
|
if ( $attributes ) {
|
||||||
foreach ( $attributes as $attribute ) {
|
foreach ( $attributes as $attribute ) {
|
||||||
if ( isset( $attribute['is_variation'] ) ) {
|
if ( ! empty( $attribute['is_variation'] ) ) {
|
||||||
$variation_attribute_found = true;
|
$variation_attribute_found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue