WordPress.org

Make WordPress Core

Ticket #8701: 8701.diff

File 8701.diff, 578 bytes (added by jacobsantos, 9 years ago)

Fix based on trunk.

  • wp-settings.php

     
    199199if (defined('WP_DEBUG') and WP_DEBUG == true) {
    200200        error_reporting(E_ALL);
    201201} else {
    202         error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
     202        if( defined( 'E_DEPRECATED' ) )
     203                error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE ^ E_DEPRECATED);
     204        else
     205                error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
    203206}
    204207
    205208// For an advanced caching plugin to use, static because you would only want one