[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 00:08:08 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
------------------------------+---------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  has-patch commit => has-patch


Comment:

 you'r introducing a potential E_NOTICE or E_WARNING:


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

 }}}

 should be:


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

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


More information about the wp-trac mailing list