Skip to content

Commit

Permalink
Only show template info on $_REQUEST['debug'] if WP_DEBUG is on
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 25, 2011
1 parent aa422fe commit 94fb886
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion author.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion category.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion content-aside.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion content-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* The Header for our theme.
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @since 0.0.1
*/

if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion loop-attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion loop-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @since 0.0.1
*/

if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion loop-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion onecolumn-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

get_header();
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @subpackage Twenty Ten
* @since 3.0.0
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion sidebar-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* The Sidebar containing the primary and secondary widget areas
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down
2 changes: 1 addition & 1 deletion tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @since 0.0.1
*/
if ( !empty( $_REQUEST['debug'] ) ) {
if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) {
if ( 'show' != $_REQUEST['debug'] ) {
echo '<!-- ';
}
Expand Down

0 comments on commit 94fb886

Please sign in to comment.