From 4119e70b3cd24905815aa8a32ae015573c7ec634 Mon Sep 17 00:00:00 2001 From: Chris Harvey Date: Mon, 13 Oct 2014 09:32:40 +0100 Subject: [PATCH] Setting values to an optional argument --- includes/class-wc-coupon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-coupon.php b/includes/class-wc-coupon.php index c603b9bf081..cbf02fa543d 100644 --- a/includes/class-wc-coupon.php +++ b/includes/class-wc-coupon.php @@ -474,7 +474,7 @@ class WC_Coupon { * @param WC_Product $product * @return boolean */ - public function is_valid_for_product( $product, $values ) { + public function is_valid_for_product( $product, $values = array() ) { if ( $this->type != 'fixed_product' && $this->type != 'percent_product' ) return apply_filters( 'woocommerce_coupon_is_valid_for_product', false, $product, $this, $values );