PluginProbe
WP Debugging / 2.11.13
WP Debugging v2.11.13
2.12.6 2.12.5 trunk 2.10.0 2.10.1 2.10.2 2.11.0 2.11.1 2.11.10 2.11.11 2.11.12 2.11.13 2.11.14 2.11.15 2.11.16 2.11.17 2.11.18 2.11.19 2.11.2 2.11.20 2.11.21 2.11.22 2.11.23 2.11.24 2.11.3 All 59 releases
wp-debugging / vendor / norcross / debug-quick-look / debug-quick-look.php

debug-quick-look.php in WP Debugging 2.11.13, at vendor/norcross/debug-quick-look/debug-quick-look.php

54 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Debug Quick Look
4 * Plugin URI: https://github.com/norcross/debug-quick-look
5 * Description: Creates an admin bar link to view or purge the debug log file.
6 * Author: Andrew Norcross
7 * Author URI: http://andrewnorcross.com
8 * Text Domain: debug-quick-look
9 * Domain Path: /languages
10 * Version: 0.1.7
11 * License: MIT
12 * License URI: https://opensource.org/licenses/MIT
13 * GitHub Plugin URI: https://github.com/norcross/debug-quick-look
14 * Requires PHP: 5.3
15 *
16 * @package DebugQuickLook
17 */
18
19 // Call our namepsace.
20 namespace DebugQuickLook;
21
22 // Exit if accessed directly
23 if ( ! defined( 'ABSPATH' ) ) exit;
24
25 // Exit if already using this plugin.
26 if ( defined( __NAMESPACE__ . '\VERS' ) ) return;
27
28 // Define our version.
29 define( __NAMESPACE__ . '\VERS', '0.1.7' );
30
31 // Plugin Folder URL.
32 define( __NAMESPACE__ . '\URL', plugin_dir_url( __FILE__ ) );
33
34 // Plugin root file.
35 define( __NAMESPACE__ . '\FILE', __FILE__ );
36
37 // Set our assets directory constant.
38 define( __NAMESPACE__ . '\ASSETS_URL', URL . 'assets' );
39
40 // Set the prefix for our actions and filters.
41 define( __NAMESPACE__ . '\HOOK_PREFIX', 'debug_quick_look_' );
42
43 // Set the debug file we wanna use.
44 define( __NAMESPACE__ . '\DEBUG_FILE', ini_get( 'error_log' ) );
45
46 // Go and load our files.
47 require_once __DIR__ . '/includes/activate.php';
48 require_once __DIR__ . '/includes/helpers.php';
49 require_once __DIR__ . '/includes/admin-bar.php';
50 require_once __DIR__ . '/includes/actions.php';
51 require_once __DIR__ . '/includes/parser.php';
52 require_once __DIR__ . '/includes/handler.php';
53 require_once __DIR__ . '/includes/formatting.php';
54