Skip to content

Commit

Permalink
Clear banner prefs on deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
thingalon authored and matticbot committed Dec 14, 2022
1 parent 6656cb4 commit a2e4729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function wpsupercache_deactivate() {
wp_clear_scheduled_hook( 'wp_cache_gc_watcher' );
wp_cache_replace_line('^ *\$cache_enabled', '$cache_enabled = false;', $wp_cache_config_file);
wp_cache_disable_plugin( false ); // don't delete configuration file
delete_option( 'wpsc_2022_boost_banner' );
delete_user_option( get_current_user_id(), 'wpsc_dismissed_boost_banner' );
}
register_deactivation_hook( __FILE__, 'wpsupercache_deactivate' );

Expand Down

0 comments on commit a2e4729

Please sign in to comment.