fixed the wc_cancel_unpaid_orders() post_type query

This commit is contained in:
claudiosmweb 2014-08-12 12:14:38 -03:00
parent 6e21079d76
commit 532d06b560
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ function wc_cancel_unpaid_orders() {
$unpaid_orders = $wpdb->get_col( $wpdb->prepare( "
SELECT posts.ID
FROM {$wpdb->posts} AS posts
WHERE posts.post_type IN ('" . implode( ',', wc_get_order_types() ) . "')
WHERE posts.post_type IN ('" . implode( "','", wc_get_order_types() ) . "')
AND posts.post_status = 'wc-pending'
AND posts.post_modified < %s
", $date ) );