From d11cde28e83492e49bf01213910b3c0d56056a06 Mon Sep 17 00:00:00 2001 From: Nestor Soriano Date: Fri, 5 May 2023 10:08:22 +0200 Subject: [PATCH] Change data migration to target WC 7.8 instead of 7.7 --- plugins/woocommerce/includes/class-wc-install.php | 4 +++- plugins/woocommerce/includes/wc-update-functions.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce/includes/class-wc-install.php b/plugins/woocommerce/includes/class-wc-install.php index ba5a73d3331..3e26e86a54d 100644 --- a/plugins/woocommerce/includes/class-wc-install.php +++ b/plugins/woocommerce/includes/class-wc-install.php @@ -231,7 +231,9 @@ class WC_Install { ), '7.7.0' => array( 'wc_update_770_remove_multichannel_marketing_feature_options', - 'wc_update_770_delete_stray_order_records', + ), + '7.8.0' => array( + 'wc_update_780_delete_stray_order_records', ), ); diff --git a/plugins/woocommerce/includes/wc-update-functions.php b/plugins/woocommerce/includes/wc-update-functions.php index e398d92f70b..f648d30a4bc 100644 --- a/plugins/woocommerce/includes/wc-update-functions.php +++ b/plugins/woocommerce/includes/wc-update-functions.php @@ -2599,7 +2599,7 @@ function wc_update_770_remove_multichannel_marketing_feature_options() { * * @return void */ -function wc_update_770_delete_stray_order_records() { +function wc_update_780_delete_stray_order_records() { global $wpdb; $orders_table_name = OrdersTableDataStore::get_orders_table_name();