[wp-trac] [WordPress Trac] #11837: define('WP_DEBUG', false) generates a silent E_NOTICE
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 9 07:13:31 UTC 2010
#11837: define('WP_DEBUG', false) generates a silent E_NOTICE
------------------------------+---------------------------------------------
Reporter: nacin | Owner: westi
Type: defect (bug) | Status: new
Priority: low | Milestone: 3.0
Component: Warnings/Notices | Version: 2.9
Severity: minor | Keywords: has-patch commit
------------------------------+---------------------------------------------
In wp-settings.php, we're checking if WP_DEBUG is defined and is true. If
its not, then we're defining WP_DEBUG as false.
Of course, if WP_DEBUG is defined as false already, then we're generating
a silent E_NOTICE (suppressed by the error_reporting initially set in wp-
load.php).
Code should check if WP_DEBUG is defined before defining to false.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11837>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list