File: h:/root/home/kytoffice-001/www/expresstinou/wp-content/plugins/aruba-hispeed-cache/uninstall.php
<?php
/**
* Manages the uninstallation process of the
* Aruba HiSpeed Cache Plugin for more information
* php version 5.6
*
* @category Wordpress-plugin
* @package Aruba-HiSpeed-Cache
* @author Aruba Developer <hispeedcache.developer@aruba.it>
* @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3
* @link https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/
*/
namespace ArubaSPA\HiSpeedCache;
// If uninstall.php is not called by WordPress, die.
if ( ! \defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
\delete_site_option( 'aruba_hispeed_cache_options' );
\delete_site_option( 'aruba_hispeed_cache_version');
if ( ! is_multisite() ) {
require_once( ABSPATH . 'wp-admin/includes/file.php' );
$ahsc_htaccess = get_home_path() . '.htaccess';
insert_with_markers( $ahsc_htaccess, 'AHSC_RULES', array(' ') );
$ahsc_file = WP_CONTENT_DIR . '/object-cache.php';
if ( file_exists( $ahsc_file ) ) {
// phpcs:ignore
@unlink( $ahsc_file );
}
}