From 5e757d2f70c80638cbed576ea96d069b8cc8ea3e Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Mon, 8 Jul 2019 15:36:12 -0300 Subject: [PATCH 1/2] exclude old WC auto-draft orders from import --- .../woocommerce-admin/includes/class-wc-admin-reports-sync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-reports-sync.php b/plugins/woocommerce-admin/includes/class-wc-admin-reports-sync.php index 0c193d800c8..c3f6e828e7a 100644 --- a/plugins/woocommerce-admin/includes/class-wc-admin-reports-sync.php +++ b/plugins/woocommerce-admin/includes/class-wc-admin-reports-sync.php @@ -365,7 +365,7 @@ class WC_Admin_Reports_Sync { $count = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->posts} WHERE post_type IN ( 'shop_order', 'shop_order_refund' ) - AND post_status NOT IN ( 'auto-draft', 'trash' ) + AND post_status NOT IN ( 'wc-auto-draft', 'auto-draft', 'trash' ) {$where_clause}" ); // WPCS: unprepared SQL ok. From b41b5bad0a1e8034a2d2ed4fdec37a5d7caf3650 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 9 Jul 2019 09:53:41 -0300 Subject: [PATCH 2/2] change order import label to Orders and Refunds --- .../client/analytics/settings/historical-data/layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/client/analytics/settings/historical-data/layout.js b/plugins/woocommerce-admin/client/analytics/settings/historical-data/layout.js index 3d797e42a79..3f4cf16b7f2 100644 --- a/plugins/woocommerce-admin/client/analytics/settings/historical-data/layout.js +++ b/plugins/woocommerce-admin/client/analytics/settings/historical-data/layout.js @@ -86,7 +86,7 @@ class HistoricalDataLayout extends Component { total={ customersTotal } />