Merge pull request #12846 from woocommerce/typofix
Fix typo on variable when it should be
This commit is contained in:
commit
32a4850d78
|
@ -1454,7 +1454,7 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
} else {
|
||||
$onsale = false;
|
||||
}
|
||||
return 'view' === $content ? apply_filters( 'woocommerce_product_is_on_sale', $onsale, $this ) : $onsale;
|
||||
return 'view' === $context ? apply_filters( 'woocommerce_product_is_on_sale', $onsale, $this ) : $onsale;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue