PluginProbe
Featherweight / trunk
Featherweight vtrunk
2.2.3 2.2.2 2.2.0 2.2.1 2.0.2 trunk 1.4.5 1.5.0 1.5.19 1.5.20 1.5.21 1.5.22 1.6.0 1.6.1 2.0.0 2.0.1
wp-disable / uninstall.php

uninstall.php in Featherweight trunk, at uninstall.php

17 lines 749 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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