Skip to content

Commit

Permalink
Remove old transients when the plugin is removed (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
merkys7 authored Aug 21, 2022
1 parent 0b758a6 commit 87b634c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
);

// Remove any transients and similar which the plugin may have left behind.
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE `option_name` LIKE '_transient_%_health-check%'" );
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE `option_name` LIKE '_transient_health-check%'" );

// Remove the old Must-Use plugin if it was implemented.
if ( file_exists( trailingslashit( WPMU_PLUGIN_DIR ) . 'health-check-disable-plugins.php' ) ) {
Expand Down

0 comments on commit 87b634c

Please sign in to comment.