PluginProbe
Advanced WordPress Reset – Debug, Recover & Reset WP / 2.0
Advanced WordPress Reset – Debug, Recover & Reset WP v2.0
trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.5 1.6 1.7 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7
advanced-wp-reset / advanced-wp-reset.php

advanced-wp-reset.php in Advanced WordPress Reset – Debug, Recover & Reset WP 2.0, at advanced-wp-reset.php

52 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 Plugin Name: Advanced WordPress Reset
5 Plugin URI: http://sigmaplugin.com/downloads/advanced-wordpress-reset
6 Description: One-click resets, restores, and more to speed up your WordPress development, testing & troubleshooting. Join +30.000 developpers, designers, marketers and content developper who make their lives easier and more productive with a 4,9 rated Plugin.
7 Version: 2.0
8 Requires at least: 4.0
9 Author: Younes JFR.
10 Author URI: http://www.sigmaplugin.com
11 Contributors: symptote
12 Text Domain: advanced-wp-reset
13 Domain Path: /languages/
14 License: GPLv2 or later
15 License URI: http://www.gnu.org/licenses/gpl-2.0.html
16 */
17 $awr_object = null;
18
19 if ( is_dir( __DIR__ . '/pro' ) ) {
20
21
22 require_once 'pro/advanced-wp-reset-pro.class.php';
23 require_once 'pro/pro-config.inc.php';
24 require_once 'config.inc.php';
25
26 if ( ! defined( "AWR_PRO_PLUGIN_JS_URL" ) ) {
27 define( "AWR_PRO_PLUGIN_JS_URL", AWR_PLUGIN_ABSOLUTE_URL . '/pro/assets/js' );
28 }
29
30 if ( class_exists ( 'AWR_Application_Pro' ) ){
31 $awr_object = new AWR_Application_Pro();
32 }
33
34 } else {
35
36 require_once 'advanced-wp-reset.class.php';
37 require_once 'free-config.inc.php';
38 require_once 'config.inc.php';
39
40 if ( class_exists ( 'AWR_Application' ) ){
41 $awr_object = new AWR_Application();
42 }
43
44 }
45
46
47 // Activation
48 register_activation_hook ( __FILE__, array ( $awr_object, 'activate' ) );
49
50 // Deactivation
51 register_deactivation_hook ( __FILE__, array ( $awr_object, 'deactivate' ) );
52