[wp-trac] [WordPress Trac] #11090: Standardize checking for WP_DEBUG
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 7 21:01:28 UTC 2009
#11090: Standardize checking for WP_DEBUG
------------------------------+---------------------------------------------
Reporter: nacin | Owner: westi
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 2.9
Component: Warnings/Notices | Version: 2.9
Severity: normal | Keywords:
------------------------------+---------------------------------------------
Comment(by nacin):
(Oops, poor Wiki formatting on my part.)
Thanks, westi.
New patch following [comment:6 dd32]'s logic, and to prevent an undefined
constant from evaluating to {{{true}}} as [comment:3 scribu] pointed out.
The only concern I might see with this route is that a plugin might be
only checking for {{{define( WP_DEBUG )}}} and not actually checking {{{if
( WP_DEBUG )}}} as well.
This reminds me of #10602 as well, regarding {{{WP_CACHE}}}.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11090#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list