Ticket #14371: 14371.patch
| File 14371.patch, 1.4 KB (added by hakre, 3 years ago) |
|---|
-
wp-includes/default-constants.php
41 41 if ( !defined('WP_CONTENT_DIR') ) 42 42 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down 43 43 44 // Add define('WP_DEBUG', true);to wp-config.php to enable display of notices during development.45 if ( !defined('WP_DEBUG') )46 define( 'WP_DEBUG', false );44 // Add <code>define( 'WP_DEBUG', true );</code> to wp-config.php to enable display of notices during development. 45 // Add <code>define( 'WP_DEBUG', 'CONFIG' );</code> to wp-config.php to use your servers configure error reporting. 46 defined( 'WP_DEBUG' ) || define( 'WP_DEBUG', false ); 47 47 48 48 // 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. 49 49 if ( !defined('WP_DEBUG_DISPLAY') ) -
wp-includes/load.php
255 255 * @since 3.0.0 256 256 */ 257 257 function wp_debug_mode() { 258 if ( 'CONFIG' === WP_DEBUG) 259 return; 260 258 261 if ( WP_DEBUG ) { 259 262 if ( defined( 'E_DEPRECATED' ) ) 260 263 error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
