Cancel based on post_modified, so that checkout (when resuming an order) prevents them being cancelled. Closes #2814.
This commit is contained in:
parent
ac097b3704
commit
d14fb5fdc1
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue