From 38185988114808ffb338c80a70410bfb2aab61a1 Mon Sep 17 00:00:00 2001 From: therealgilles Date: Mon, 11 Jun 2018 20:29:16 +0000 Subject: [PATCH] Rename woocommerce_checkout_skip_update_order_review_expired to woocommerce_checkout_update_order_review_expired and change filter polarity. --- includes/class-wc-ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 8381b2d7f57..b3f7ff2cda2 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -274,7 +274,7 @@ class WC_AJAX { wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true ); - if ( WC()->cart->is_empty() && ! is_customize_preview() && ! apply_filters( 'woocommerce_checkout_skip_update_order_review_expired', false ) ) { + if ( WC()->cart->is_empty() && ! is_customize_preview() && apply_filters( 'woocommerce_checkout_update_order_review_expired', true ) ) { self::update_order_review_expired(); }