| 1 |
<?php |
| 2 |
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit; } |
| 3 |
require_once 'lib/class-wpperformance.php'; |
| 4 |
WpPerformance::delete_options(); |
| 5 |
WpPerformance::delete_transients(); |
| 6 |
WpPerformance::unschedule_spam_comments_delete(); |
| 7 |
|
| 8 |
// Clean up legacy add-on download-link transients from the pre-Folium era |
| 9 |
// (the cross-plugin installer that set these was removed in 2.2.0). |
| 10 |
foreach ( array( 'wp-disable', 'cache-performance', 'wp-image-compression' ) as $wp_disable_legacy_slug ) { |
| 11 |
delete_transient( 'optimisaitionio_addon_download_link[' . $wp_disable_legacy_slug . ']' ); |
| 12 |
} |
| 13 |
|
| 14 |
// Clean up the legacy Universal Analytics offload cron + transient, if present. |
| 15 |
wp_clear_scheduled_hook( 'update_local_ga' ); |
| 16 |
delete_transient( 'wpperformance_ds_tracking_id' ); |
| 17 |
|