Version Description
Compatibility updates for trunk
Download this release
Release Info
| Developer | koopersmith |
| Plugin | |
| Version | 0.4.1 |
| Comparing to | |
| See all releases | |
Code changes from version 0.4 to 0.4.1
- debug-bar.css +1 -1
- debug-bar.dev.css +4 -33
- debug-bar.dev.js +24 -11
- debug-bar.js +1 -1
- debug-bar.php +7 -6
- readme.txt +7 -1
debug-bar.css
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
div#wpadminbar li.ab-debug-bar{float:right;}#querylist{font-family:Arial,Tahoma,sans-serif;display:none;position:absolute;top:50px;left:50px;right:50px;background:#fff;padding:20px;-moz-box-shadow:0 0 15px #888;-webkit-box-shadow:0 0 15px #888;box-shadow:0 0 15px #888;z-index:99999;border:10px solid #f0f0f0;color:#000;line-height:150%!important;}#querylist pre{font-size:12px;padding:10px;}#querylist h1{font-family:georgia,times,serif;text-align:center;font-size:24px;padding:20px 5px;background:#eee;color:#555;margin:0;}#querylist div#debug-status{background:#ccc;color:#fff;overflow:hidden;height:21px;font-size:14px;font-family:georgia,times,serif;padding:7px 15px;}#querylist .left{float:left;}#querylist .right{float:right;}#querylist h1,#querylist h2,#querylist h3{font-weight:normal;}#
|
| 1 |
+
div#wpadminbar li.ab-debug-bar{float:right;}#querylist{font-family:Arial,Tahoma,sans-serif;display:none;position:absolute;top:50px;left:50px;right:50px;background:#fff;padding:20px;-moz-box-shadow:0 0 15px #888;-webkit-box-shadow:0 0 15px #888;box-shadow:0 0 15px #888;z-index:99999;border:10px solid #f0f0f0;color:#000;line-height:150%!important;}#querylist pre{font-size:12px;padding:10px;}#querylist h1{font-family:georgia,times,serif;text-align:center;font-size:24px;padding:20px 5px;background:#eee;color:#555;margin:0;}#querylist div#debug-status{background:#ccc;color:#fff;overflow:hidden;height:21px;font-size:14px;font-family:georgia,times,serif;padding:7px 15px;}#querylist .left{float:left;}#querylist .right{float:right;}#querylist h1,#querylist h2,#querylist h3{font-weight:normal;}#debug-menu-links{clear:left;background:#ccc;padding:10px 15px 0;overflow:hidden;list-style:none;margin:0;padding:0 0 0 15px;}#debug-menu-links li{float:left;margin-right:10px;margin-bottom:0!important;}#debug-menu-links li a{outline:none;display:block;padding:5px 9px;margin-right:0;background:#bbb;color:#fff!important;text-decoration:none!important;font-weight:normal;font-size:12px;color:#555;-webkit-border-top-right-radius:4px;-webkit-border-top-left-radius:4px;-moz-border-radius-topright:4px;-moz-border-radius-topleft:4px;}#debug-menu-links li.current a{background:#fff;color:#555!important;}#querylist h2{float:left;min-width:150px;border:1px solid #eee;padding:5px 10px 15px;clear:none;important;text-align:center;font-family:georgia,times,serif;font-size:28px;margin:15px 10px 15px 0!important;}#querylist h2 span{font-size:12px;color:#888;text-transform:uppercase;white-space:nowrap;display:block;margin-bottom:5px;}#object-cache-stats h2{border:none;float:none;text-align:left;font-size:22px;margin-bottom:0;}#querylist h3{margin-bottom:15px;}#querylist ol#wpd-queries{padding:0!important;margin:0!important;list-style:none;clear:left;}#querylist ol#wpd-queries li{padding:10px;background:#f0f0f0;margin:0 0 10px 0;}#querylist ol#wpd-queries li div.qdebug{background:#e8e8e8;margin:10px -10px -10px -10px;padding:5px 150px 5px 5px;font-size:11px;position:relative;min-height:20px;}#querylist ol#wpd-queries li div.qdebug span{position:absolute;right:10px;top:5px;white-space:nowrap;}#querylist a{text-decoration:underline!important;color:blue!important;}#querylist a:hover{text-decoration:none!important;}#querylist .debug-menu-target{display:none;}#querylist ol{font:12px Monaco,"Courier New",Courier,Fixed!important;line-height:180%!important;}#debug-bar-php ol.debug-bar-php-list{padding:0!important;margin:0!important;list-style:none;clear:left;}#debug-bar-php ol.debug-bar-php-list li{padding:10px;margin:0 0 10px 0;}#debug-bar-php ol.debug-bar-php-list li.debug-bar-php-warning{background:red;}#debug-bar-php ol.debug-bar-php-list li.debug-bar-php-notice{background:orange;}#debug-bar-deprecated ol.debug-bar-deprecated-list{padding:0!important;margin:0!important;list-style:none;clear:left;}#debug-bar-deprecated ol.debug-bar-deprecated-list li{padding:10px;margin:0 0 10px 0;background:#f0f0f0;}#wpadminbar li.ab-php-warning{background:#d00;}#wpadminbar li.ab-php-notice{background:#d50;}#debug-bar-wp-query ol.debug-bar-wp-query-list{padding:0!important;margin:0!important;list-style:none;clear:left;}#debug-bar-wp-query ol.debug-bar-wp-query-list li,#debug-bar-wp-query p,#debug-bar-request p{padding:10px;margin:0 0 10px 0;background:#f0f0f0;}#debug-bar-wp-query h3,#debug-bar-request h3{float:none;clear:both;font-family:georgia,times,serif;font-size:22px;margin:15px 10px 15px 0!important;}
|
debug-bar.dev.css
CHANGED
|
@@ -61,7 +61,7 @@ div#wpadminbar li.ab-debug-bar {
|
|
| 61 |
font-weight: normal;
|
| 62 |
}
|
| 63 |
|
| 64 |
-
#
|
| 65 |
clear: left;
|
| 66 |
background: #ccc;
|
| 67 |
padding: 10px 15px 0;
|
|
@@ -71,13 +71,13 @@ div#wpadminbar li.ab-debug-bar {
|
|
| 71 |
padding: 0 0 0 15px;
|
| 72 |
}
|
| 73 |
|
| 74 |
-
#
|
| 75 |
float: left;
|
| 76 |
margin-right: 10px;
|
| 77 |
margin-bottom: 0 !important;
|
| 78 |
}
|
| 79 |
|
| 80 |
-
#
|
| 81 |
outline: none;
|
| 82 |
display: block;
|
| 83 |
padding: 5px 9px;
|
|
@@ -94,7 +94,7 @@ div#wpadminbar li.ab-debug-bar {
|
|
| 94 |
-moz-border-radius-topleft: 4px;
|
| 95 |
}
|
| 96 |
|
| 97 |
-
#
|
| 98 |
background: #fff;
|
| 99 |
color: #555 !important;
|
| 100 |
}
|
|
@@ -129,35 +129,6 @@ div#wpadminbar li.ab-debug-bar {
|
|
| 129 |
margin-bottom: 0;
|
| 130 |
}
|
| 131 |
|
| 132 |
-
#object-cache-stats ul.debug-menu-links {
|
| 133 |
-
padding: 0;
|
| 134 |
-
margin: 0;
|
| 135 |
-
background: none;
|
| 136 |
-
}
|
| 137 |
-
|
| 138 |
-
#object-cache-stats ul.debug-menu-links li {
|
| 139 |
-
float: left;
|
| 140 |
-
margin-bottom: 10px !important;
|
| 141 |
-
background: none !important;
|
| 142 |
-
border: 1px solid #eee !important;
|
| 143 |
-
color: #555 !important;
|
| 144 |
-
}
|
| 145 |
-
|
| 146 |
-
#object-cache-stats ul.debug-menu-links li.current a {
|
| 147 |
-
background: #ccc !important;
|
| 148 |
-
color: #fff !important;
|
| 149 |
-
-webkit-border-top-right-radius: 0;
|
| 150 |
-
-webkit-border-top-left-radius: 0;
|
| 151 |
-
-moz-border-radius-topright: 0;
|
| 152 |
-
-moz-border-radius-topleft: 0;
|
| 153 |
-
}
|
| 154 |
-
|
| 155 |
-
#object-cache-stats ul.debug-menu-links li a {
|
| 156 |
-
background: none;
|
| 157 |
-
color: #555 !important;
|
| 158 |
-
overflow: hidden;
|
| 159 |
-
}
|
| 160 |
-
|
| 161 |
#querylist h3 {
|
| 162 |
margin-bottom: 15px;
|
| 163 |
}
|
| 61 |
font-weight: normal;
|
| 62 |
}
|
| 63 |
|
| 64 |
+
#debug-menu-links {
|
| 65 |
clear: left;
|
| 66 |
background: #ccc;
|
| 67 |
padding: 10px 15px 0;
|
| 71 |
padding: 0 0 0 15px;
|
| 72 |
}
|
| 73 |
|
| 74 |
+
#debug-menu-links li {
|
| 75 |
float: left;
|
| 76 |
margin-right: 10px;
|
| 77 |
margin-bottom: 0 !important;
|
| 78 |
}
|
| 79 |
|
| 80 |
+
#debug-menu-links li a {
|
| 81 |
outline: none;
|
| 82 |
display: block;
|
| 83 |
padding: 5px 9px;
|
| 94 |
-moz-border-radius-topleft: 4px;
|
| 95 |
}
|
| 96 |
|
| 97 |
+
#debug-menu-links li.current a {
|
| 98 |
background: #fff;
|
| 99 |
color: #555 !important;
|
| 100 |
}
|
| 129 |
margin-bottom: 0;
|
| 130 |
}
|
| 131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
#querylist h3 {
|
| 133 |
margin-bottom: 15px;
|
| 134 |
}
|
debug-bar.dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
(function(){
|
| 2 |
|
| 3 |
-
var addEvent, toggleQueryList, clickDebugLink;
|
| 4 |
|
| 5 |
addEvent = function( obj, type, fn ) {
|
| 6 |
if (obj.addEventListener)
|
|
@@ -9,6 +9,13 @@ addEvent = function( obj, type, fn ) {
|
|
| 9 |
obj.attachEvent('on' + type, function() { return fn.call(obj, window.event);});
|
| 10 |
};
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
toggleQueryList = function( e ) {
|
| 13 |
var querylist = document.getElementById( 'querylist' );
|
| 14 |
|
|
@@ -18,15 +25,18 @@ toggleQueryList = function( e ) {
|
|
| 18 |
querylist.style.display='block';
|
| 19 |
}
|
| 20 |
|
| 21 |
-
|
| 22 |
-
if ( e.preventDefault )
|
| 23 |
-
e.preventDefault();
|
| 24 |
-
e.returnValue = false;
|
| 25 |
};
|
| 26 |
|
| 27 |
-
clickDebugLink = function(
|
| 28 |
-
var sectionDivs, i, j
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
for ( i = 0; i < sectionDivs.length; i++ ) {
|
| 31 |
if ( 1 != sectionDivs[i].nodeType ) {
|
| 32 |
continue;
|
|
@@ -42,12 +52,15 @@ clickDebugLink = function( targetsGroupId, obj) {
|
|
| 42 |
obj.parentNode.parentNode.childNodes[j].removeAttribute( 'class' );
|
| 43 |
}
|
| 44 |
obj.parentNode.setAttribute( 'class', 'current' );
|
| 45 |
-
|
|
|
|
| 46 |
};
|
| 47 |
|
| 48 |
addEvent(window, 'load', function() {
|
| 49 |
-
var
|
| 50 |
-
|
|
|
|
|
|
|
| 51 |
});
|
| 52 |
|
| 53 |
})();
|
| 1 |
(function(){
|
| 2 |
|
| 3 |
+
var addEvent, preventDefault, toggleQueryList, clickDebugLink;
|
| 4 |
|
| 5 |
addEvent = function( obj, type, fn ) {
|
| 6 |
if (obj.addEventListener)
|
| 9 |
obj.attachEvent('on' + type, function() { return fn.call(obj, window.event);});
|
| 10 |
};
|
| 11 |
|
| 12 |
+
preventDefault = function( e ) {
|
| 13 |
+
// IE doesn't support preventDefault, and does support returnValue
|
| 14 |
+
if ( e.preventDefault )
|
| 15 |
+
e.preventDefault();
|
| 16 |
+
e.returnValue = false;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
toggleQueryList = function( e ) {
|
| 20 |
var querylist = document.getElementById( 'querylist' );
|
| 21 |
|
| 25 |
querylist.style.display='block';
|
| 26 |
}
|
| 27 |
|
| 28 |
+
preventDefault( e );
|
|
|
|
|
|
|
|
|
|
| 29 |
};
|
| 30 |
|
| 31 |
+
clickDebugLink = function( e ) {
|
| 32 |
+
var sectionDivs, i, j,
|
| 33 |
+
obj = e.target || e.srcElement;
|
| 34 |
+
|
| 35 |
+
if ( ! obj.className || -1 == obj.className.indexOf('debug-menu-link') )
|
| 36 |
+
return;
|
| 37 |
+
|
| 38 |
+
sectionDivs = document.getElementById( 'debug-menu-targets' ).childNodes;
|
| 39 |
+
|
| 40 |
for ( i = 0; i < sectionDivs.length; i++ ) {
|
| 41 |
if ( 1 != sectionDivs[i].nodeType ) {
|
| 42 |
continue;
|
| 52 |
obj.parentNode.parentNode.childNodes[j].removeAttribute( 'class' );
|
| 53 |
}
|
| 54 |
obj.parentNode.setAttribute( 'class', 'current' );
|
| 55 |
+
|
| 56 |
+
preventDefault( e );
|
| 57 |
};
|
| 58 |
|
| 59 |
addEvent(window, 'load', function() {
|
| 60 |
+
var adminBarLink = document.getElementById('wp-admin-bar-queries'),
|
| 61 |
+
adminBarTabs = document.getElementById('debug-menu-links');
|
| 62 |
+
addEvent( adminBarLink, 'click', toggleQueryList );
|
| 63 |
+
addEvent( adminBarTabs, 'click', clickDebugLink );
|
| 64 |
});
|
| 65 |
|
| 66 |
})();
|
debug-bar.js
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
(function(){var
|
| 1 |
+
(function(){var d,b,a,c;d=function(g,f,e){if(g.addEventListener){g.addEventListener(f,e,false)}else{if(g.attachEvent){g.attachEvent("on"+f,function(){return e.call(g,window.event)})}}};b=function(f){if(f.preventDefault){f.preventDefault()}f.returnValue=false};a=function(g){var f=document.getElementById("querylist");if(f&&f.style.display=="block"){f.style.display="none"}else{f.style.display="block"}b(g)};c=function(l){var h,g,f,k=l.target||l.srcElement;if(!k.className||-1==k.className.indexOf("debug-menu-link")){return}h=document.getElementById("debug-menu-targets").childNodes;for(g=0;g<h.length;g++){if(1!=h[g].nodeType){continue}h[g].style.display="none"}document.getElementById(k.href.substr(k.href.indexOf("#")+1)).style.display="block";for(f=0;f<k.parentNode.parentNode.childNodes.length;f++){if(1!=k.parentNode.parentNode.childNodes[f].nodeType){continue}k.parentNode.parentNode.childNodes[f].removeAttribute("class")}k.parentNode.setAttribute("class","current");b(l)};d(window,"load",function(){var e=document.getElementById("wp-admin-bar-queries"),f=document.getElementById("debug-menu-links");d(e,"click",a);d(f,"click",c)})})();
|
debug-bar.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin URI: http://wordpress.org/extend/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.4
|
| 8 |
Author URI: http://wordpress.org/
|
| 9 |
*/
|
| 10 |
|
|
@@ -39,8 +39,8 @@ function debug_bar_menu_init() {
|
|
| 39 |
return;
|
| 40 |
|
| 41 |
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
|
| 42 |
-
wp_enqueue_style( 'admin-bar-debug', plugins_url("debug-bar/debug-bar$suffix.css"), array(), '
|
| 43 |
-
wp_enqueue_script( 'admin-bar-debug', plugins_url("debug-bar/debug-bar$suffix.js"), array(), '
|
| 44 |
|
| 45 |
// Silence E_NOTICE for deprecated usage.
|
| 46 |
foreach ( array( 'function', 'file', 'argument' ) as $item )
|
|
@@ -86,14 +86,15 @@ function debug_bar_list() {
|
|
| 86 |
<p class="left"></p>
|
| 87 |
<p class="right"><?php printf( __('PHP Version: %1$s, DB Version: %2$s'), phpversion(), $wpdb->db_version() ); ?></p>
|
| 88 |
</div>
|
| 89 |
-
<ul
|
| 90 |
|
| 91 |
<?php $current = ' class="current"'; foreach ( $debugs as $debug => $debug_output ) : ?>
|
| 92 |
|
| 93 |
<li <?php echo $current; ?>><a
|
| 94 |
id="debug-menu-link-<?php echo $debug; ?>"
|
| 95 |
-
|
| 96 |
-
|
|
|
|
| 97 |
|
| 98 |
<?php $current = ''; endforeach; ?>
|
| 99 |
|
| 4 |
Plugin URI: http://wordpress.org/extend/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.4.1
|
| 8 |
Author URI: http://wordpress.org/
|
| 9 |
*/
|
| 10 |
|
| 39 |
return;
|
| 40 |
|
| 41 |
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
|
| 42 |
+
wp_enqueue_style( 'admin-bar-debug', plugins_url("debug-bar/debug-bar$suffix.css"), array(), '20110112' );
|
| 43 |
+
wp_enqueue_script( 'admin-bar-debug', plugins_url("debug-bar/debug-bar$suffix.js"), array(), '20110112' );
|
| 44 |
|
| 45 |
// Silence E_NOTICE for deprecated usage.
|
| 46 |
foreach ( array( 'function', 'file', 'argument' ) as $item )
|
| 86 |
<p class="left"></p>
|
| 87 |
<p class="right"><?php printf( __('PHP Version: %1$s, DB Version: %2$s'), phpversion(), $wpdb->db_version() ); ?></p>
|
| 88 |
</div>
|
| 89 |
+
<ul id="debug-menu-links">
|
| 90 |
|
| 91 |
<?php $current = ' class="current"'; foreach ( $debugs as $debug => $debug_output ) : ?>
|
| 92 |
|
| 93 |
<li <?php echo $current; ?>><a
|
| 94 |
id="debug-menu-link-<?php echo $debug; ?>"
|
| 95 |
+
class="debug-menu-link"
|
| 96 |
+
href="#debug-menu-target-<?php echo $debug; ?>">
|
| 97 |
+
<?php echo $debug_output[0] ?></a></li>
|
| 98 |
|
| 99 |
<?php $current = ''; endforeach; ?>
|
| 100 |
|
readme.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
Contributors: wordpressdotorg, ryan, westi, koopersmith
|
| 3 |
Tags: debug
|
| 4 |
Tested up to: 3.1
|
| 5 |
-
Stable tag: 0.
|
| 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.
|
|
@@ -19,6 +19,9 @@ When SAVEQUERIES is enabled the mysql queries are tracked and displayed.
|
|
| 19 |
|
| 20 |
== Upgrade Notice ==
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
= 0.4 =
|
| 23 |
Added DB Version information
|
| 24 |
Updated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
|
|
@@ -37,6 +40,9 @@ Initial Release
|
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
= 0.4 =
|
| 41 |
Added DB Version information
|
| 42 |
Updated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
|
| 2 |
Contributors: wordpressdotorg, ryan, westi, koopersmith
|
| 3 |
Tags: debug
|
| 4 |
Tested up to: 3.1
|
| 5 |
+
Stable tag: 0.4
|
| 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.
|
| 19 |
|
| 20 |
== Upgrade Notice ==
|
| 21 |
|
| 22 |
+
= 0.4.1 =
|
| 23 |
+
Compatibility updates for trunk
|
| 24 |
+
|
| 25 |
= 0.4 =
|
| 26 |
Added DB Version information
|
| 27 |
Updated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
|
| 40 |
|
| 41 |
== Changelog ==
|
| 42 |
|
| 43 |
+
= 0.4.1 =
|
| 44 |
+
Compatibility updates for trunk
|
| 45 |
+
|
| 46 |
= 0.4 =
|
| 47 |
Added DB Version information
|
| 48 |
Updated PHP Warning and Notice tracking so that multiple different errors on the same line are tracked
|
