Updates to 6.3.1

This commit is contained in:
WooCommerce
2024-05-09 10:14:19 +00:00
parent cc9b3f8f53
commit 7bd88fa86c
75 changed files with 825 additions and 500 deletions

View File

@@ -782,6 +782,10 @@ class WC_Subscriptions_Switcher {
$order = wc_get_order( $order_id );
if ( ! $order instanceof WC_Order ) {
return;
}
// delete all the existing subscription switch links before adding new ones
WCS_Related_Order_Store::instance()->delete_relations( $order, 'switch' );