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:
Mike Jolley 2013-11-13 04:15:04 -08:00
commit e9c38153e5
1 changed files with 1 additions and 1 deletions

View File

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