Cancel based on post_modified, so that checkout (when resuming an order) prevents them being cancelled. Closes #2814.

This commit is contained in:
Mike Jolley 2013-03-26 12:41:41 +00:00
parent ac097b3704
commit d14fb5fdc1
1 changed files with 1 additions and 1 deletions

View File

@ -2447,7 +2447,7 @@ function woocommerce_cancel_unpaid_orders() {
AND posts.post_status = 'publish' AND posts.post_status = 'publish'
AND tax.taxonomy = 'shop_order_status' AND tax.taxonomy = 'shop_order_status'
AND term.slug IN ('pending') AND term.slug IN ('pending')
AND posts.post_date < %s AND posts.post_modified < %s
", $date ) ); ", $date ) );
if ( $unpaid_orders ) { if ( $unpaid_orders ) {