Make WordPress Core

Changeset 11128 for trunk/wp-load.php


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

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

File:
1 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') ) {
Note: See TracChangeset for help on using the changeset viewer.