diff --git a/includes/class-mailchimp-admin.php b/includes/class-mailchimp-admin.php index 6b1e0f8..fe0f2fd 100644 --- a/includes/class-mailchimp-admin.php +++ b/includes/class-mailchimp-admin.php @@ -299,6 +299,7 @@ public function verify_and_save_oauth_token( $access_token, $data_center ) { $data_encryption = new Mailchimp_Data_Encryption(); // Clean up the old data. + delete_option( 'mc_api_key' ); // Deprecated API key, need to remove as part of the migration. delete_option( 'mailchimp_sf_access_token' ); delete_option( 'mailchimp_sf_auth_error' ); delete_option( 'mc_datacenter' );