WordPress.org

Make WordPress Core

Changeset 14250


Ignore:
Timestamp:
04/27/2010 05:46:41 AM (8 years ago)
Author:
nacin
Message:

Display PHP start-up errors/warnings. fixes #12395 for 2.9. props eddieringle.

Location:
branches/2.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-admin/plugins.php

    r12383 r14250  
    9595
    9696            if ( defined('E_RECOVERABLE_ERROR') )
    97                 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     97                error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
    9898            else
    99                 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     99                error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    100100
    101101            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
  • branches/2.9/wp-admin/update.php

    r12383 r14250  
    5555
    5656            if ( defined('E_RECOVERABLE_ERROR') )
    57                 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     57                error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
    5858            else
    59                 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     59                error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    6060
    6161            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
  • branches/2.9/wp-load.php

    r11408 r14250  
    2121
    2222if ( defined('E_RECOVERABLE_ERROR') )
    23     error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     23    error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
    2424else
    25     error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     25    error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    2626
    2727if ( file_exists( ABSPATH . 'wp-config.php') ) {
  • branches/2.9/wp-settings.php

    r12393 r14250  
    219219    define('WP_DEBUG', false);
    220220    if ( defined('E_RECOVERABLE_ERROR') )
    221         error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     221        error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
    222222    else
    223         error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     223        error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    224224}
    225225
     
    230230/**
    231231 * Private
    232  */ 
     232 */
    233233if ( !defined('MEDIA_TRASH') )
    234234    define('MEDIA_TRASH', false);
Note: See TracChangeset for help on using the changeset viewer.