Current Path : /storage/v11800/testtest/public_html/wp-content/plugins/pagespeed/index-wp-mysql-for-speed/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/testtest/public_html/wp-content/plugins/pagespeed/index-wp-mysql-for-speed/uninstall.php |
<?php
/* uninstall index-wp-mysql-for-speed */
global $wpdb;
/* if uninstall.php is not called by WordPress, die */
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
die;
}
/* make sure we've deleted the mu-plugin for handling upgrades. It should
* have been deleted on deactivation, but belt-and-suspenders */
$filterName = 'index-wp-mysql-for-speed-update-filter.php';
@unlink( trailingslashit( WPMU_PLUGIN_DIR ) . $filterName );
/* delete settings */
delete_option( 'ImfsPage' );
/* delete saved monitors */
$q = "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE 'imfsQueryMonitor%'";
$rs = $wpdb->get_results( $q );
foreach ( $rs as $r ) {
delete_option( $r->option_name );
}