Revert Debug cruft from [19679], See #19249

git-svn-id: https://develop.svn.wordpress.org/trunk@19681 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2012-01-05 07:43:40 +00:00
parent 8b37e9a821
commit 112ed6af44
1 changed files with 4 additions and 4 deletions

View File

@ -260,10 +260,10 @@ function wp_debug_mode() {
if ( WP_DEBUG ) {
// E_DEPRECATED is a core PHP constant in PHP 5.3. Don't define this yourself.
// The two statements are equivalent, just one is for 5.3+ and for less than 5.3.
// if ( defined( 'E_DEPRECATED' ) )
// error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
// else
error_reporting( E_ALL | E_DEPRECATED | E_STRICT );
if ( defined( 'E_DEPRECATED' ) )
error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
else
error_reporting( E_ALL );
if ( WP_DEBUG_DISPLAY )
ini_set( 'display_errors', 1 );