PluginProbe ʕ •ᴥ•ʔ
Aruba HiSpeed Cache / trunk
Aruba HiSpeed Cache vtrunk
3.0.14 3.0.13 1.2.4 1.2.5 1.2.6 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.19 2.0.20 2.0.21 2.0.22 2.0.23 2.0.24 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3
aruba-hispeed-cache / uninstall.php
aruba-hispeed-cache Last commit date
admin 1 month ago assets 3 months ago languages 3 months ago src 1 week ago aruba-hispeed-cache.php 1 week ago index.php 2 years ago readme.txt 1 week ago uninstall.php 3 months ago
uninstall.php
34 lines
1 <?php
2 /**
3 * Manages the uninstallation process of the
4 * Aruba HiSpeed Cache Plugin for more information
5 * php version 5.6
6 *
7 * @category Wordpress-plugin
8 * @package Aruba-HiSpeed-Cache
9 * @author Aruba Developer <hispeedcache.developer@aruba.it>
10 * @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3
11 * @link https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/
12 */
13
14 namespace ArubaSPA\HiSpeedCache;
15
16 // If uninstall.php is not called by WordPress, die.
17 if ( ! \defined( 'WP_UNINSTALL_PLUGIN' ) ) {
18 exit;
19 }
20
21 \delete_site_option( 'aruba_hispeed_cache_options' );
22 \delete_site_option( 'aruba_hispeed_cache_version');
23 if ( ! is_multisite() ) {
24
25 require_once( ABSPATH . 'wp-admin/includes/file.php' );
26 $ahsc_htaccess = get_home_path() . '.htaccess';
27 insert_with_markers( $ahsc_htaccess, 'AHSC_RULES', array(' ') );
28
29 $ahsc_file = WP_CONTENT_DIR . '/object-cache.php';
30 if ( file_exists( $ahsc_file ) ) {
31 // phpcs:ignore
32 @unlink( $ahsc_file );
33 }
34 }