[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 20:59:58 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: new
Priority: normal | Milestone: 2.9.2
Component: General | Version: 2.9.1
Severity: normal | Keywords: WP_DEBUG
--------------------------+-------------------------------------------------
In wp-settings.php exists
{{{
// Add define('WP_DEBUG_DISPLAY', false); to wp-config.php to use the
globally configured setting for display_errors and not force it to On
if ( ! defined('WP_DEBUG_DISPLAY') || WP_DEBUG_DISPLAY )
ini_set('display_errors', 1);
}}}
But it should be a 0, so that it should look as follow
{{{
// Add define('WP_DEBUG_DISPLAY', false); to wp-config.php to use the
globally configured setting for display_errors and not force it to On
if ( ! defined('WP_DEBUG_DISPLAY') || WP_DEBUG_DISPLAY )
ini_set('display_errors', 0);
}}}
Problem:
If I add ''define('WP_DEBUG', true);'' to wp-config.php it shows me the
erros as default. If I add then ''define('WP_DEBUG_DISPLAY', false);'' it
makes no sense.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11987>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list