-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
debugpress.php
69 lines (59 loc) · 2.42 KB
/
debugpress.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Plugin Name: DebugPress: Debugger in Popup
* Plugin URI: https://debug.press/
* Description: Easy-to-use plugin for debugging and profiling website loading, SQL queries analysis, help with development, bug fixing, all in configurable popup.
* Author: Milan Petrovic
* Author URI: https://www.dev4press.com/
* Text Domain: debugpress
* Version: 4.1
* Requires at least: 5.5
* Tested up to: 6.7
* Requires PHP: 7.4
* Requires CP: 2.0
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* @package DebugPress
*
* == Copyright ==
* Copyright 2008 - 2024 Milan Petrovic (email: [email protected])
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
const DEBUGPRESS_VERSION = '4.1';
const DEBUGPRESS_FILE = __FILE__;
const DEBUGPRESS_PLUGIN_PATH = __DIR__ . '/';
define( 'DEBUGPRESS_PLUGIN_URL', plugins_url( '/', DEBUGPRESS_FILE ) );
define( 'DEBUGPRESS_IS_AJAX', defined( 'DOING_AJAX' ) && DOING_AJAX );
define( 'DEBUGPRESS_IS_CRON', defined( 'DOING_CRON' ) && DOING_CRON );
define( 'DEBUGPRESS_IS_CLI', defined( 'WP_CLI' ) && WP_CLI );
if ( ! defined( 'D4P_TAB' ) ) {
define( 'D4P_TAB', "\t" );
}
if ( ! defined( 'DEBUGPRESS_ACTIVATION_PRIORITY' ) ) {
define( 'DEBUGPRESS_ACTIVATION_PRIORITY', 99 );
}
if ( DEBUGPRESS_IS_CLI || DEBUGPRESS_IS_CRON ) {
return;
}
require_once DEBUGPRESS_PLUGIN_PATH . 'vendor/autoload.php';
require_once DEBUGPRESS_PLUGIN_PATH . 'core/autoload.php';
require_once DEBUGPRESS_PLUGIN_PATH . 'core/bridge.php';
require_once DEBUGPRESS_PLUGIN_PATH . 'core/functions.php';
debugpress_plugin();
if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) {
require_once DEBUGPRESS_PLUGIN_PATH . 'core/admin.php';
debugpress_admin();
}