[wp-trac] [WordPress Trac] #24325: [wp-includes/load.php] LINE 270: ini_set should be verify before call

WordPress Trac noreply at wordpress.org
Sun May 12 10:48:31 UTC 2013


#24325: [wp-includes/load.php] LINE 270: ini_set should be verify before call
-------------------------+-----------------------------
 Reporter:  teo.cojo     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  minor        |   Keywords:  has-patch
-------------------------+-----------------------------
 Block @2 should be encapsulate in @1 if.

 Most of hosting disable ini_set function and this will resolve some users
 frustration about multiple junk line of logs or error display.

 This is my first report, so I apologize if something is wrong.

 @1
 {{{
 if (function_exists('ini_set')) {
  @2 CODE
 }
 }}}



 @2
 {{{
 if ( WP_DEBUG_DISPLAY )
    ini_set( 'display_errors', 1 );
 elseif ( null !== WP_DEBUG_DISPLAY )
    ini_set( 'display_errors', 0 );

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

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24325>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list