WordPress.org

Make WordPress Core

Ticket #10533: settings.patch

File settings.patch, 756 bytes (added by mrmist, 9 years ago)

Remove deprecated and strict warnings from wp_debug

  • wp-settings.php

     
    199199
    200200// Add define('WP_DEBUG',true); to wp-config.php to enable display of notices during development.
    201201if ( defined('WP_DEBUG') && WP_DEBUG == true ) {
    202         error_reporting(E_ALL);
     202        if ( defined('E_DEPRECATED') && defined('E_STRICT')  )
     203                error_reporting(E_ALL & ~ E_DEPRECATED & ~ E_STRICT);
     204        else
     205                error_reporting(E_ALL);
    203206        // Add define('WP_DEBUG_DISPLAY', false); to wp-config.php to use the globally configured setting for display_errors and not force it to On
    204207        if ( ! defined('WP_DEBUG_DISPLAY') || WP_DEBUG_DISPLAY == true )
    205208                ini_set('display_errors', 1);