Small codestyle fix to add_discount method.
This commit is contained in:
parent
1d4800ee98
commit
6312683eec
|
@ -1575,8 +1575,9 @@ class WC_Cart {
|
||||||
*/
|
*/
|
||||||
public function add_discount( $coupon_code ) {
|
public function add_discount( $coupon_code ) {
|
||||||
// Coupons are globally disabled
|
// Coupons are globally disabled
|
||||||
if ( ! $this->coupons_enabled() )
|
if ( ! $this->coupons_enabled() ) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Sanitize coupon code
|
// Sanitize coupon code
|
||||||
$coupon_code = apply_filters( 'woocommerce_coupon_code', $coupon_code );
|
$coupon_code = apply_filters( 'woocommerce_coupon_code', $coupon_code );
|
||||||
|
|
Loading…
Reference in New Issue