mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-16 22:32:56 +00:00
Updates to 6.3.1
This commit is contained in:
@@ -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' );
|
||||
|
||||
|
Reference in New Issue
Block a user