From 429803cc2555e53f0b1b02e6905378d05da3f7a6 Mon Sep 17 00:00:00 2001 From: Peter Fabian Date: Mon, 17 Sep 2018 21:01:44 +0200 Subject: [PATCH] Updated prefix for stats db table. --- .../woocommerce-admin/includes/class-wc-admin-api-init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php b/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php index b9ef4839f82..9d703514aa6 100644 --- a/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php +++ b/plugins/woocommerce-admin/includes/class-wc-admin-api-init.php @@ -91,7 +91,7 @@ class WC_Admin_Api_Init { set_transient( 'wc_update_350_all_orders', $orders, DAY_IN_SECONDS ); } - // Process orders untill close to running out of memory timeouts on large sites then requeue. + // Process orders until close to running out of memory timeouts on large sites then requeue. foreach ( $orders as $order_id ) { $order = wc_get_order( $order_id ); if ( ! $order ) { @@ -99,7 +99,7 @@ class WC_Admin_Api_Init { } foreach ( $order->get_items() as $order_item ) { $wpdb->replace( - $wpdb->prefix . 'wc_order_product_lookup', + $wpdb->prefix . 'wc_admin_order_product_lookup', array( 'order_item_id' => $order_item->get_id(), 'order_id' => $order->get_id(),