WordPress.org

Make WordPress Core

Ticket #3155: 3155adddebug.diff

File 3155adddebug.diff, 526 bytes (added by Nazgul, 11 years ago)
  • wp-settings.php

     
    9696timer_start();
    9797
    9898// Change to E_ALL for development/debugging
    99 error_reporting(E_ALL ^ E_NOTICE);
     99if (defined('WPDEBUG') && WPDEBUG == true) {
     100    error_reporting(E_ALL);
     101} else {
     102    error_reporting(E_ALL ^ E_NOTICE);
     103}
    100104
    101105// For an advanced caching plugin to use, static because you would only want one
    102106if ( defined('WP_CACHE') )