[wp-trac] [WordPress Trac] #11090: Standardize checking for WP_DEBUG

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 6 17:21:56 UTC 2009


#11090: Standardize checking for WP_DEBUG
------------------------------+---------------------------------------------
 Reporter:  nacin             |       Owner:  westi     
     Type:  defect (bug)      |      Status:  new       
 Priority:  normal            |   Milestone:  Unassigned
Component:  Warnings/Notices  |     Version:  2.9       
 Severity:  normal            |    Keywords:            
------------------------------+---------------------------------------------
 The Codex recommends {{{define('WP_DEBUG', true)}}} or
 {{{define('WP_DEBUG', false)}}}. However, WP_DEBUG is inconsistently
 checked whether should {{{WP_DEBUG}}} be identical or equal to those
 values.

 Thus, {{{define('WP_DEBUG', 1)}}} will not turn all feedback on, and
 {{{define('WP_DEBUG', 0)}}} will not turn all feedback off.

 Two patches attached, depending on whether it should be standardized to
 {{{true == WP_DEBUG}}} or {{{true === WP_DEBUG}}}.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11090>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list