Merge pull request #4101 from franticpsyx/variation_is_visible
Fix invisible variations when get_price is filtered and set to (double) 0.
This commit is contained in:
commit
e9c38153e5
|
@ -230,7 +230,7 @@ class WC_Product_Variation extends WC_Product {
|
||||||
$visible = false;
|
$visible = false;
|
||||||
|
|
||||||
// Price not set
|
// Price not set
|
||||||
elseif ( $this->get_price() == "" )
|
elseif ( $this->get_price() === "" )
|
||||||
$visible = false;
|
$visible = false;
|
||||||
|
|
||||||
return apply_filters( 'woocommerce_variation_is_visible', $visible, $this->variation_id, $this->id );
|
return apply_filters( 'woocommerce_variation_is_visible', $visible, $this->variation_id, $this->id );
|
||||||
|
|
Loading…
Reference in New Issue