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

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 17 12:28:54 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):

 Replying to [comment:14 miqrogroove]:
 > It should work?  The current version should override log_errors, not
 display_errors.
 From wp_debug_mode() in wp-includes/load.php:
 {{{
         if ( WP_DEBUG_DISPLAY )
                 ini_set( 'display_errors', 1 );

         if ( WP_DEBUG_LOG ) {
                 ini_set( 'log_errors', 1 );
                 ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );
         }
 }}}

 WP_DEBUG_LOG is by default false. WP_DEBUG_DISPLAY is by default true.

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


More information about the wp-trac mailing list