WordPress.org

Make WordPress Core

Ticket #11837: 11837.2.diff

File 11837.2.diff, 787 bytes (added by nacin, 8 years ago)

Realized this would be a better way to do it

  • wp-settings.php

     
    202202timer_start();
    203203
    204204// Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
    205 if ( defined('WP_DEBUG') && WP_DEBUG ) {
     205if ( ! defined('WP_DEBUG') )
     206        define('WP_DEBUG', false);
     207if ( WP_DEBUG ) {
    206208        if ( defined('E_DEPRECATED') )
    207209                error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
    208210        else
     
    216218                ini_set('error_log', WP_CONTENT_DIR . '/debug.log');
    217219        }
    218220} else {
    219         define('WP_DEBUG', false);
    220221        if ( defined('E_RECOVERABLE_ERROR') )
    221222                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
    222223        else