This script will uninstall the files and directories created by WP Super Cache.
DONE
";
}
if ( in_array( 'wp-super-cache/wp-cache.php', get_option( 'active_plugins' ) ) )
wp_die( 'WP Super Cache is still active. Please disable it on your plugins page first.' );
echo "Removing " . WP_CONTENT_DIR . "/cache/ :";
uninstall_supercache( WP_CONTENT_DIR . '/cache' );
echo " DONE
";
echo "Removing " . WP_CONTENT_DIR . "/advanced-cache.php :";
@unlink( WP_CONTENT_DIR . "/advanced-cache.php" );
echo " DONE
";
echo "Removing " . WP_CONTENT_DIR . "/wp-cache-config.php :";
@unlink( WP_CONTENT_DIR . "/wp-cache-config.php" );
echo " DONE
";
echo "Make sure you remove the following line from " . ABSPATH . "wp-config.php too.
";
echo "define('WP_CACHE', true);
";
echo "Please comment out the UNINSTALL_WPSUPERCACHE define() in this file!
";
wp_mail( $current_user->user_email, 'WP Super Cache Uninstalled', '' );
} else {
?>