Fix invisible when get_price is filtered and set to double 0.

This commit is contained in:
Manos Psychogyiopoulos 2013-11-13 13:58:24 +02:00
parent 81122c1d1c
commit fd2a812e6d
1 changed files with 1 additions and 1 deletions

View File

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