WordPress.org

Make WordPress Core

Ticket #5033: const_wpdebug.diff

File const_wpdebug.diff, 597 bytes (added by ozh, 11 years ago)

optional debug mode

  • wp-settings.php

     
    9595}
    9696timer_start();
    9797
    98 // Change to E_ALL for development/debugging
    99 error_reporting(E_ALL ^ E_NOTICE);
     98// define('WPDEBUG',true); in wp-config.php for development notices
     99if (defined('WPDEBUG') and 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') )