Ticket #11837: 11837.2.diff

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

Realized this would be a better way to do it

Line 
1Index: wp-settings.php
2===================================================================
3--- wp-settings.php     (revision 12626)
4+++ wp-settings.php     (working copy)
5@@ -202,7 +202,9 @@
6 timer_start();
7 
8 // Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
9-if ( defined('WP_DEBUG') && WP_DEBUG ) {
10+if ( ! defined('WP_DEBUG') )
11+       define('WP_DEBUG', false);
12+if ( WP_DEBUG ) {
13        if ( defined('E_DEPRECATED') )
14                error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
15        else
16@@ -216,7 +218,6 @@
17                ini_set('error_log', WP_CONTENT_DIR . '/debug.log');
18        }
19 } else {
20-       define('WP_DEBUG', false);
21        if ( defined('E_RECOVERABLE_ERROR') )
22                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
23        else