Make WordPress Core

Changeset 11128


Ignore:
Timestamp:
04/29/2009 08:18:44 PM (16 years ago)
Author:
ryan
Message:

Error reporting fixes. Props Denis-de-Bernardy, jacobsantos. fixes #9639 #8701

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-load.php

    r10698 r11128  
    2020define( 'ABSPATH', dirname(__FILE__) . '/' );
    2121
    22 error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
     22if ( defined('E_RECOVERABLE_ERROR') )
     23    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     24else
     25    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    2326
    2427if ( file_exists( ABSPATH . 'wp-config.php') ) {
  • trunk/wp-settings.php

    r10937 r11128  
    202202    error_reporting(E_ALL);
    203203} else {
    204     // Unicode Extension is in PHP 6.0 only or do version check when this changes.
    205     if ( function_exists('unicode_decode') )
    206         error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT );
    207     else if ( defined( 'E_DEPRECATED' ) ) // Introduced in PHP 5.3
    208         error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE );
     204    if ( defined('E_RECOVERABLE_ERROR') )
     205        error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
    209206    else
    210         error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
     207        error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    211208}
    212209
Note: See TracChangeset for help on using the changeset viewer.