Changeset 18545
- Timestamp:
- 08/13/2011 06:59:05 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-constants.php
r17804 r18545 50 50 define( 'WP_DEBUG', false ); 51 51 52 // Add define('WP_DEBUG_DISPLAY', false); to wp-config.php use the globally configured setting for display_errors and not force errors to be displayed. 52 // Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for 53 // display_errors and not force errors to be displayed. Use false to force display_errors off. 53 54 if ( !defined('WP_DEBUG_DISPLAY') ) 54 55 define( 'WP_DEBUG_DISPLAY', true ); -
trunk/wp-includes/load.php
r18460 r18545 250 250 * 251 251 * When WP_DEBUG_DISPLAY is true, WordPress will force errors to be displayed. 252 * WP_DEBUG_DISPLAY defaults to true. Defining it as falseprevents WordPress from253 * changing the global configuration setting. (Defining WP_DEBUG_DISPLAY as false254 * will never force errors to be hidden.)252 * WP_DEBUG_DISPLAY defaults to true. Defining it as null prevents WordPress from 253 * changing the global configuration setting. Defining WP_DEBUG_DISPLAY as false 254 * will force errors to be hidden. 255 255 * 256 256 * When WP_DEBUG_LOG is true, errors will be logged to wp-content/debug.log. … … 271 271 if ( WP_DEBUG_DISPLAY ) 272 272 ini_set( 'display_errors', 1 ); 273 elseif ( null !== WP_DEBUG_DISPLAY ) 274 ini_set( 'display_errors', 0 ); 273 275 274 276 if ( WP_DEBUG_LOG ) {
Note: See TracChangeset
for help on using the changeset viewer.