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

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 26 15:21:40 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 commit
------------------------------+---------------------------------------------

Comment(by azaozz):

 Wouldn't it be better to do:
 {{{
 if ( defined('WP_DEBUG_LOG') && WP_DEBUG_LOG ) {
     ini_set('log_errors', 1);
     ini_set('error_log', WP_CONTENT_DIR . '/debug.log');
 } else {
     ini_set('display_errors', 1);
 }
 }}}
 When debugging you'll want either one or the other.

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


More information about the wp-trac mailing list