Skip to content

Commit

Permalink
Rename woocommerce_checkout_skip_update_order_review_expired to wooco…
Browse files Browse the repository at this point in the history
…mmerce_checkout_update_order_review_expired and change filter polarity.
  • Loading branch information
therealgilles committed Jun 11, 2018
1 parent 43db16a commit 3818598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public static function update_order_review() {

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();
}

Expand Down

0 comments on commit 3818598

Please sign in to comment.