Make WordPress Core


Ignore:
Timestamp:
01/22/2009 08:51:07 PM (18 years ago)
Author:
westi
Message:

Update error_reporting configuration for newer version of PHP. Fixes #8701 for 2.7.x props jacobsantos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-settings.php

    r10288 r10406  
    202202        error_reporting(E_ALL);
    203203} else {
    204         error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
     204        if ( defined( 'E_DEPRECATED' ) )
     205                error_reporting(E_ALL ^ E_STRICT ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE);
     206        else if ( defined( 'E_STRICT' ) )
     207                error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE ^ E_USER_NOTICE);
     208        else
     209                error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
    205210}
    206211
Note: See TracChangeset for help on using the changeset viewer.