From d14fb5fdc1a36cc34bb7fe47f5e466e28c1c4ddb Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 26 Mar 2013 12:41:41 +0000 Subject: [PATCH] Cancel based on post_modified, so that checkout (when resuming an order) prevents them being cancelled. Closes #2814. --- woocommerce-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index c691d3def27..4e8c2949644 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -2447,7 +2447,7 @@ function woocommerce_cancel_unpaid_orders() { AND posts.post_status = 'publish' AND tax.taxonomy = 'shop_order_status' AND term.slug IN ('pending') - AND posts.post_date < %s + AND posts.post_modified < %s ", $date ) ); if ( $unpaid_orders ) {