WordPress.org

Make WordPress Core

Ticket #16920: 16920.6.patch

File 16920.6.patch, 869 bytes (added by hakre, 9 years ago)

E_RECOVERABLE_ERROR is available since PHP 5.2.0

  • wp-load.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk bare
     
    1919/** Define ABSPATH as this files directory */
    2020define( 'ABSPATH', dirname(__FILE__) . '/' );
    2121
    22 if ( defined('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);
    24 else
    25         error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     22error_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 );
    2623
    2724if ( file_exists( ABSPATH . 'wp-config.php') ) {
    2825