Merge branch 'pr/18272'
This commit is contained in:
commit
1a65aed0d9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue