[wp-trac] Re: [WordPress Trac] #10202: Enable display_errors if WP_DEBUG is true

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 18 08:29:24 GMT 2009


#10202: Enable display_errors if WP_DEBUG is true
------------------------------+---------------------------------------------
 Reporter:  sivel             |       Owner:           
     Type:  enhancement       |      Status:  new      
 Priority:  normal            |   Milestone:  2.8.1    
Component:  Warnings/Notices  |     Version:  2.8      
 Severity:  normal            |    Keywords:  has-patch
------------------------------+---------------------------------------------

Comment(by dd32):

 > if ( ! defined('WP_DEBUG_DISPLAY') || ( defined('WP_DEBUG_DISPLAY') &&
 WP_DEBUG_DISPLAY == true ) )

 That can be simplified to this in line with the rest of core:

 {{{
 if ( ! defined('WP_DEBUG_DISPLAY') || WP_DEBUG_DISPLAY == true )
 }}}

 The == true isnt really needed either IMO.. but 'eh :)

 +1 for WP_CONTENT_DIR instead of ABSPATH. Even though i think XMLRPC uses
 ABSPATH/.../rpc.log or something :)

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


More information about the wp-trac mailing list