WordPress.org

Make WordPress Core

Changeset 10405


Ignore:
Timestamp:
01/22/09 20:44:06 (5 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r10291 r10405  
    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.