[wp-trac] [WordPress Trac] #5033: Better error_reporting and a
debug mode
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 21 19:02:39 GMT 2007
#5033: Better error_reporting and a debug mode
--------------------------+-------------------------------------------------
Reporter: ozh | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.3.1
Component: Optimization | Version:
Severity: normal | Keywords: debug error_reporting e_all e_notice notice has-patch 2nd-opinion
--------------------------+-------------------------------------------------
Following a discussion on wp-hackers in September, here is a proposition
for a better error_reporting handling, and an optional debug mode (plugin)
developers could activate on a per-blog basis
It would consist of the following:
in wp-settings.php:
{{{
if (defined('WPDEBUG') and WPDEBUG == true) {
error_reporting(E_ALL);
} else {
error_reporting(E_ALL ^ E_NOTICE);
}
}}}
Then, on wp-config.php for developers:
{{{
define('WPDEBUG', true);
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/5033>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list