Merge pull request #22890 from woocommerce/fix/21785

Avoid changing tracking preferences when disconnecting helper
This commit is contained in:
Mike Jolley 2019-03-11 17:04:29 +00:00 committed by GitHub
commit 72870d808c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -833,9 +833,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();
}