Merge pull request #12846 from woocommerce/typofix

Fix typo on  variable when it should be
This commit is contained in:
Claudio Sanches 2017-01-16 19:11:29 -02:00 committed by GitHub
commit 32a4850d78
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**