Make WordPress Core

Changeset 6179


Ignore:
Timestamp:
09/30/2007 11:09:47 AM (17 years ago)
Author:
westi
Message:

Enable developers to turn on notices from wp-config.php. Relates #3155. Fixes #5033 props Ozh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r6139 r6179  
    9696timer_start();
    9797
    98 // Change to E_ALL for development/debugging
    99 error_reporting(E_ALL ^ E_NOTICE);
     98// Add define('WPDEBUG',true); to wp-config.php to enable display of notices during development.
     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
Note: See TracChangeset for help on using the changeset viewer.