Version Description
Updated to avoid PHP7 Deprecated notices.
Download this release
Release Info
Developer | dd32 |
Plugin | Debug Bar |
Version | 0.8.3 |
Comparing to | |
See all releases |
Code changes from version 0.8.2 to 0.8.3
- debug-bar.php +8 -4
- panels/class-debug-bar-panel.php +5 -1
- readme.txt +12 -3
debug-bar.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Debug Bar
|
4 |
-
Plugin URI:
|
5 |
Description: Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
6 |
Author: wordpressdotorg
|
7 |
-
Version: 0.8.
|
8 |
-
Author URI:
|
9 |
*/
|
10 |
|
11 |
/***
|
@@ -20,12 +20,16 @@
|
|
20 |
class Debug_Bar {
|
21 |
var $panels = array();
|
22 |
|
23 |
-
function
|
24 |
if ( defined('DOING_AJAX') && DOING_AJAX )
|
25 |
add_action( 'admin_init', array( &$this, 'init_ajax' ) );
|
26 |
add_action( 'admin_bar_init', array( &$this, 'init' ) );
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
29 |
function init() {
|
30 |
if ( ! is_super_admin() || ! is_admin_bar_showing() || $this->is_wp_login() )
|
31 |
return;
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Debug Bar
|
4 |
+
Plugin URI: https://wordpress.org/plugins/debug-bar/
|
5 |
Description: Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
6 |
Author: wordpressdotorg
|
7 |
+
Version: 0.8.3
|
8 |
+
Author URI: https://wordpress.org/
|
9 |
*/
|
10 |
|
11 |
/***
|
20 |
class Debug_Bar {
|
21 |
var $panels = array();
|
22 |
|
23 |
+
function __construct() {
|
24 |
if ( defined('DOING_AJAX') && DOING_AJAX )
|
25 |
add_action( 'admin_init', array( &$this, 'init_ajax' ) );
|
26 |
add_action( 'admin_bar_init', array( &$this, 'init' ) );
|
27 |
}
|
28 |
|
29 |
+
function Debug_Bar() {
|
30 |
+
$this->__construct();
|
31 |
+
}
|
32 |
+
|
33 |
function init() {
|
34 |
if ( ! is_super_admin() || ! is_admin_bar_showing() || $this->is_wp_login() )
|
35 |
return;
|
panels/class-debug-bar-panel.php
CHANGED
@@ -4,7 +4,7 @@ class Debug_Bar_Panel {
|
|
4 |
var $_title = '';
|
5 |
var $_visible = true;
|
6 |
|
7 |
-
function
|
8 |
$this->title( $title );
|
9 |
|
10 |
if ( $this->init() === false ) {
|
@@ -15,6 +15,10 @@ class Debug_Bar_Panel {
|
|
15 |
add_filter( 'debug_bar_classes', array( &$this, 'debug_bar_classes' ) );
|
16 |
}
|
17 |
|
|
|
|
|
|
|
|
|
18 |
/**
|
19 |
* Initializes the panel.
|
20 |
*/
|
4 |
var $_title = '';
|
5 |
var $_visible = true;
|
6 |
|
7 |
+
function __construct( $title = '' ) {
|
8 |
$this->title( $title );
|
9 |
|
10 |
if ( $this->init() === false ) {
|
15 |
add_filter( 'debug_bar_classes', array( &$this, 'debug_bar_classes' ) );
|
16 |
}
|
17 |
|
18 |
+
function Debug_Bar_Panel( $title = '' ) {
|
19 |
+
$this->__construct( $title );
|
20 |
+
}
|
21 |
+
|
22 |
/**
|
23 |
* Initializes the panel.
|
24 |
*/
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Debug Bar ===
|
2 |
Contributors: wordpressdotorg, ryan, westi, koopersmith, duck_, mitchoyoshitaka
|
3 |
Tags: debug
|
4 |
-
Tested up to: 4.
|
5 |
-
Stable tag: 0.8.
|
6 |
Requires at least: 3.1
|
7 |
|
8 |
Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
@@ -17,10 +17,13 @@ When WP_DEBUG is enabled it also tracks PHP Warnings and Notices to make them ea
|
|
17 |
|
18 |
When SAVEQUERIES is enabled the mysql queries are tracked and displayed.
|
19 |
|
20 |
-
Add a PHP/MySQL console with the [Debug Bar Console plugin](
|
21 |
|
22 |
== Upgrade Notice ==
|
23 |
|
|
|
|
|
|
|
24 |
= 0.8.2 =
|
25 |
Updated to handle a new deprecated message in WordPress 4.0.
|
26 |
|
@@ -75,6 +78,12 @@ Initial Release
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
= 0.8.1 =
|
79 |
Minor security fix.
|
80 |
|
1 |
=== Debug Bar ===
|
2 |
Contributors: wordpressdotorg, ryan, westi, koopersmith, duck_, mitchoyoshitaka
|
3 |
Tags: debug
|
4 |
+
Tested up to: 4.5
|
5 |
+
Stable tag: 0.8.3
|
6 |
Requires at least: 3.1
|
7 |
|
8 |
Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.
|
17 |
|
18 |
When SAVEQUERIES is enabled the mysql queries are tracked and displayed.
|
19 |
|
20 |
+
Add a PHP/MySQL console with the [Debug Bar Console plugin](https://wordpress.org/plugins/debug-bar-console/).
|
21 |
|
22 |
== Upgrade Notice ==
|
23 |
|
24 |
+
= 0.8.3 =
|
25 |
+
Updated to avoid PHP7 Deprecated notices.
|
26 |
+
|
27 |
= 0.8.2 =
|
28 |
Updated to handle a new deprecated message in WordPress 4.0.
|
29 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 0.8.3 =
|
82 |
+
Updated to avoid PHP7 Deprecated notices.
|
83 |
+
|
84 |
+
= 0.8.2 =
|
85 |
+
Updated to handle a new deprecated message in WordPress 4.0.
|
86 |
+
|
87 |
= 0.8.1 =
|
88 |
Minor security fix.
|
89 |
|