forked from wp-media/wp-rocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.php
executable file
·32 lines (25 loc) · 1.64 KB
/
uninstall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
if ( ! defined( 'WP_ROCKET_CACHE_ROOT_PATH' ) ) {
define( 'WP_ROCKET_CACHE_ROOT_PATH', WP_CONTENT_DIR . '/cache/' );
}
if ( ! defined( 'WP_ROCKET_CONFIG_PATH' ) ) {
define( 'WP_ROCKET_CONFIG_PATH', WP_CONTENT_DIR . '/wp-rocket-config/' );
}
require_once dirname( __FILE__ ) . '/inc/Engine/WPRocketUninstall.php';
// RUCSS Database Engine.
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Base.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Column.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Schema.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Query.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Row.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Table.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Queries/Meta.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Queries/Date.php';
require_once dirname( __FILE__ ) . '/inc/Dependencies/Database/Queries/Compare.php';
require_once dirname( __FILE__ ) . '/inc/Engine/Optimization/RUCSS/Database/Tables/Resources.php';
require_once dirname( __FILE__ ) . '/inc/Engine/Optimization/RUCSS/Database/Tables/UsedCSS.php';
$rocket_rucss_resources_table = new WP_Rocket\Engine\Optimization\RUCSS\Database\Tables\Resources();
$rocket_rucss_usedcss_table = new WP_Rocket\Engine\Optimization\RUCSS\Database\Tables\UsedCSS();
$rocket_uninstall = new WPRocketUninstall( WP_ROCKET_CACHE_ROOT_PATH, WP_ROCKET_CONFIG_PATH, $rocket_rucss_resources_table, $rocket_rucss_usedcss_table );
$rocket_uninstall->uninstall();