[wp-trac] [WordPress Trac] #11987: Use ini_set('display_errors', 0) instead of ini_set('display_errors', 1); in wp-settings.php

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 23 21:15:48 UTC 2010


#11987: Use ini_set('display_errors', 0) instead of ini_set('display_errors', 1);
in wp-settings.php
--------------------------+-------------------------------------------------
 Reporter:  ocean90       |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:  2.9.1  
 Severity:  normal        |   Resolution:  invalid
 Keywords:  WP_DEBUG      |  
--------------------------+-------------------------------------------------
Changes (by nacin):

  * status:  new => closed
  * resolution:  => invalid
  * milestone:  2.9.2 =>


Comment:

 This code was split up significantly in #11881 but the logic remains the
 same.

 The functionality of {{{define('WP_DEBUG', true);}}} has never changed --
 it sets a more inclusive error_reporting level and the errors are shown.
 Months ago WP_DEBUG_DISPLAY was introduced as a way to then hide errors
 but still set the error_reporting level to include E_NOTICE. Because
 errors are by default shown and the constant is called *_DISPLAY, it needs
 to be defined as false to hide them.

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


More information about the wp-trac mailing list