Skip to content

Commit c77efb1

Browse files
option prefix always has underscore, so include it just to be safe
1 parent 16fb0ec commit c77efb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uninstall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
global $wpdb;
99

1010
// Delete all MC4WP related options and transients
11-
$wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name = 'mc4wp' OR option_name LIKE 'mc4wp%' OR option_name LIKE '_transient_mc4wp_%' OR option_name LIKE '_transient_timeout_mc4wp_%';");
11+
$wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name = 'mc4wp' OR option_name LIKE 'mc4wp_%' OR option_name LIKE '_transient_mc4wp_%' OR option_name LIKE '_transient_timeout_mc4wp_%';");
1212

1313
// Delete all MC4WP forms + settings
1414
$wpdb->query("DELETE p, pm FROM {$wpdb->posts} p LEFT JOIN {$wpdb->postmeta} pm ON pm.post_id = p.ID WHERE p.post_type = 'mc4wp-form';");

0 commit comments

Comments
 (0)