Rename woocommerce_checkout_skip_update_order_review_expired to woocommerce_checkout_update_order_review_expired and change filter polarity.
This commit is contained in:
parent
43db16a708
commit
3818598811
|
@ -274,7 +274,7 @@ class WC_AJAX {
|
||||||
|
|
||||||
wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true );
|
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();
|
self::update_order_review_expired();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue