[wp-trac] [WordPress Trac] #11987: Incorrect handling of WP_DEBUG_DISPLAY

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 16 16:48:14 UTC 2010


#11987: Incorrect handling of WP_DEBUG_DISPLAY
--------------------------+-------------------------------------------------
 Reporter:  ocean90       |        Owner:  nacin   
     Type:  defect (bug)  |       Status:  accepted
 Priority:  normal        |    Milestone:  3.0     
Component:  Inline Docs   |      Version:          
 Severity:  normal        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by nacin):

 Will need some more coffee.

 "defining it as true, remember, pushes it from force on to
  server setting" -- s/true/false/. So:
 {{{
 define('WP_DEBUG_DISPLAY', true); // default setting. FORCE ON
 define('WP_DEBUG_DISPLAY', false); // don't force. use server setting
 }}}

 Additionally my three-liner for FORCE OFF was wrong:
 {{{
 efine('WP_DEBUG', true);
 define('WP_DEBUG_DISPLAY', false); // don't mess with server value
 ini_set('display_errors', 0); // only time the server value will be messed
 with
 }}}

 I'm not going to lie, it's confusing. :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11987#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list