changed comparison type to non strict in case a string is passed

This commit is contained in:
splashingpixels 2015-01-16 06:52:49 -08:00
parent 187f6729e9
commit eee5d16844
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ class WC_Product_Variable extends WC_Product {
if ( $price !== $saleprice ) {
$price = apply_filters( 'woocommerce_variable_sale_price_html', $this->get_price_html_from_to( $saleprice, $price ) . $this->get_price_suffix(), $this );
} else {
if ( $prices[0] === 0 && $prices[1] === 0 ) {
if ( $prices[0] == 0 && $prices[1] == 0 ) {
$price = __( 'Free!', 'woocommerce' );
$price = apply_filters( 'woocommerce_variable_free_price_html', $price, $this );
} else {