Merge branch 'pr/18272'

This commit is contained in:
Mike Jolley 2018-01-02 11:57:45 +00:00
commit 1a65aed0d9
1 changed files with 1 additions and 1 deletions

View File

@ -817,7 +817,7 @@ class WC_Discounts {
$categories = array();
foreach ( $this->items as $item ) {
if ( $coupon->get_exclude_sale_items() && $item->product && $item->product->is_on_sale() ) {
if ( ! $item->product ) {
continue;
}