Fix invisible when get_price is filtered and set to double 0.
This commit is contained in:
parent
81122c1d1c
commit
fd2a812e6d
|
@ -230,7 +230,7 @@ class WC_Product_Variation extends WC_Product {
|
|||
$visible = false;
|
||||
|
||||
// Price not set
|
||||
elseif ( $this->get_price() == "" )
|
||||
elseif ( $this->get_price() === "" )
|
||||
$visible = false;
|
||||
|
||||
return apply_filters( 'woocommerce_variation_is_visible', $visible, $this->variation_id, $this->id );
|
||||
|
|
Loading…
Reference in New Issue