WordPress.org

Make WordPress Core

Ticket #14371: 14371.patch

File 14371.patch, 1.4 KB (added by hakre, 10 years ago)
  • wp-includes/default-constants.php

     
    4141        if ( !defined('WP_CONTENT_DIR') )
    4242                define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
    4343
    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 );
    4747
    4848        // 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.
    4949        if ( !defined('WP_DEBUG_DISPLAY') )
  • wp-includes/load.php

     
    255255 * @since 3.0.0
    256256 */
    257257function wp_debug_mode() {
     258        if ( 'CONFIG' === WP_DEBUG)
     259                return;
     260
    258261        if ( WP_DEBUG ) {
    259262                if ( defined( 'E_DEPRECATED' ) )
    260263                        error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );