Force display_errors to off when WP_DEBUG_DISPLAY == false. Technically a backwards incompatible change - if you want the passthrough to php.ini (which false used to provide) then use WP_DEBUG_DISPLAY === null. see #18391.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -49,7 +49,8 @@ function wp_initial_constants( ) {
|
||||
if ( !defined('WP_DEBUG') )
|
||||
define( 'WP_DEBUG', false );
|
||||
|
||||
// Add define('WP_DEBUG_DISPLAY', false); to wp-config.php use the globally configured setting for display_errors and not force errors to be displayed.
|
||||
// Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
|
||||
// display_errors and not force errors to be displayed. Use false to force display_errors off.
|
||||
if ( !defined('WP_DEBUG_DISPLAY') )
|
||||
define( 'WP_DEBUG_DISPLAY', true );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user