From 94fb88640054af5b72b39ea8e17c61375fbfcc97 Mon Sep 17 00:00:00 2001 From: "aaron@xavisys.com" Date: Mon, 25 Jul 2011 17:28:57 +0000 Subject: [PATCH] Only show template info on $_REQUEST['debug'] if WP_DEBUG is on --- 404.php | 2 +- archive.php | 2 +- attachment.php | 2 +- author.php | 2 +- category.php | 2 +- comments.php | 2 +- content-aside.php | 2 +- content-gallery.php | 2 +- content.php | 2 +- footer.php | 2 +- header.php | 2 +- index.php | 2 +- loop-attachment.php | 2 +- loop-page.php | 2 +- loop-single.php | 2 +- loop.php | 2 +- onecolumn-page.php | 2 +- page.php | 2 +- search.php | 2 +- searchform.php | 2 +- sidebar-footer.php | 2 +- sidebar.php | 2 +- single.php | 2 +- tag.php | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/404.php b/404.php index 729954f..ed4da88 100644 --- a/404.php +++ b/404.php @@ -4,7 +4,7 @@ * * @since 0.0.1 */ -if ( !empty( $_REQUEST['debug'] ) ) { +if ( WP_DEBUG && !empty( $_REQUEST['debug'] ) ) { if ( 'show' != $_REQUEST['debug'] ) { echo '