WordPress.org

Make WordPress Core

Ticket #8701: 8701.3.diff

File 8701.3.diff, 691 bytes (added by jacobsantos, 9 years ago)

Ensure that the bit operators correctly remove the constants.

  • 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_STRICT & E_DEPRECATED & E_NOTICE & E_USER_NOTICE);
     204        else if ( defined( 'E_STRICT' ) )
     205                error_reporting(E_ALL & E_STRICT & E_NOTICE & E_USER_NOTICE);
     206        else
     207                error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
    203208}
    204209
    205210// For an advanced caching plugin to use, static because you would only want one