From 0b3a57c96f6d1da0968f005c287f4380e261ead1 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 27 Feb 2019 14:04:50 +0000 Subject: [PATCH] Avoid changing tracking preferences when disconnecting helper --- includes/admin/helper/class-wc-helper.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/admin/helper/class-wc-helper.php b/includes/admin/helper/class-wc-helper.php index ce94e610ffa..a9f541cb2ae 100644 --- a/includes/admin/helper/class-wc-helper.php +++ b/includes/admin/helper/class-wc-helper.php @@ -788,9 +788,6 @@ class WC_Helper { self::_flush_subscriptions_cache(); self::_flush_updates_cache(); - // Disable tracking when disconnected. - update_option( 'woocommerce_allow_tracking', 'no' ); - wp_safe_redirect( $redirect_uri ); die(); }