From 1b46e96c1f1d124dca13d2a7bebdc521182684f7 Mon Sep 17 00:00:00 2001 From: svfcode Date: Wed, 11 Dec 2024 17:42:06 +0300 Subject: [PATCH] Upd. Settings. Delete meta data on deactivation on multisite. --- lib/Cleantalk/ApbctWP/Deactivator.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/Cleantalk/ApbctWP/Deactivator.php b/lib/Cleantalk/ApbctWP/Deactivator.php index 85b0594b2..c6cc0bb75 100644 --- a/lib/Cleantalk/ApbctWP/Deactivator.php +++ b/lib/Cleantalk/ApbctWP/Deactivator.php @@ -30,12 +30,10 @@ public static function deactivation($network_wide) self::deleteTables($wpdb->get_blog_prefix($blog)); delete_option('cleantalk_cron'); // Deleting cron entries - if ( $apbct->settings['misc__complete_deactivation'] ) { - self::deleteAllOptions(); - self::deleteMeta(); - self::deleteAllOptionsInNetwork(); - self::deleteSFWUpdateFolder(); - } + self::deleteAllOptions(); + self::deleteMeta(); + self::deleteAllOptionsInNetwork(); + self::deleteSFWUpdateFolder(); } switch_to_blog($initial_blog); } else {