Skip to content

Commit

Permalink
Must delete both the cart and the expiration time
Browse files Browse the repository at this point in the history
Otherwise, can't save carts after the first expiration.
  • Loading branch information
joedolson committed Dec 23, 2023
1 parent 8ef0fe9 commit 2f48eb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/includes/data-utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ function mt_is_cart_expired() {
if ( time() > $data_age ) {
// Expire user's cart after the data ages out.
delete_user_meta( $current_user->ID, "_mt_user_$type" );
delete_user_meta( $current_user->ID, "_mt_user_init_$type" );
}
}
} else {
Expand Down

0 comments on commit 2f48eb8

Please sign in to comment.