Skip to content

Commit 37cb637

Browse files
committed
fix(uninstall): fix issue where the plugin couldn't be deleted
1 parent 2587c11 commit 37cb637

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ If hosting with Pantheon, see their [known issues page](https://pantheon.io/docs
110110
* feat(dashboard): dashboard ui enhancements
111111
* perf(sharing): performance improvements when sharing data
112112
* fix(memberpress): removed memberpress support, they made fundamental changes to their plugin that's ganna require a rework
113+
* fix(uninstall): fix issue where the plugin couldn't be deleted
113114
* chore(charts): updated chart.js tp 3.9.1
114115

115116
= v5.4.0 =

uninstall.php

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,28 @@
1616
'blacklist' => 'wpzerospam_blacklist',
1717
);
1818

19-
$modules = \ZeroSpam\Core\Settings::get_settings_by_module();
19+
$modules = array(
20+
'comments',
21+
'contactform7',
22+
'davidwalsh',
23+
'fluentforms',
24+
'formidable',
25+
'givewp',
26+
'gravityforms',
27+
'login',
28+
'mailchimp4wp',
29+
'registration',
30+
'woocommerce',
31+
'wpforms',
32+
'debug',
33+
'google',
34+
'ipinfo',
35+
'ipstack',
36+
'project_honeypot',
37+
'security',
38+
'stop_forum_spam',
39+
'zerospam',
40+
);
2041

2142
if ( is_multisite() ) {
2243
// @codingStandardsIgnoreLine
@@ -34,7 +55,7 @@
3455
delete_option( 'zero_spam_last_api_report' );
3556
delete_option( 'zero-spam-last-update' );
3657

37-
foreach ( $modules as $module => $settings ) {
58+
foreach ( $modules as $key => $module ) {
3859
delete_option( "zero-spam-$module" );
3960
}
4061

0 commit comments

Comments
 (0)