[theme-reviewers] WordPress Quick-Debug Mode Hack

Simon Prosser pross at pross.org.uk
Mon Oct 4 20:26:43 UTC 2010


Nice tip Chip! Shame the plugin idea wont work, it has to be in
wp-config.php to work :(

On 10/04/10 21:18, Chip Bennett wrote:
> Check out this great post from Yoast
> <http://yoast.com/wordpress-debug/>, who gives a tip that very likely
> every Theme reviewer will find incredibly useful: enabling debug mode
> with a URL get parameter:
> 
>     if ( isset($_GET['debug']) && $_GET['debug'] == 'debug')
>       define('WP_DEBUG', true);
> 
> 
> Put this in wp-config.php, in place of the usual define('WP_DEBUG',
> true); call.
> 
> This is definitely going into my own install, so that I can use debug
> mode on my Theme review subdomain, without outputting tons of errors on
> my main site!
> 
> (p.s. note the caveat to change the second instance of 'debug' to
> something unique, for a bit of security-through-obscurity.)
> 
> Chip
> 
> 
> 
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers

-- 
My Blog : http://www.pross.org.uk/
Plugins : http://www.pross.org.uk/plugins/
Themes  : http://wordpress.org/extend/themes/profile/pross


More information about the theme-reviewers mailing list