Skip to content

Commit

Permalink
Upd. Settings. Delete meta data on deactivation on multisite.
Browse files Browse the repository at this point in the history
  • Loading branch information
svfcode committed Dec 11, 2024
1 parent becb982 commit 1b46e96
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/Cleantalk/ApbctWP/Deactivator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1b46e96

Please sign in to comment.