WordPress.org

Make WordPress Core

Ticket #12395: 12395.diff

File 12395.diff, 3.7 KB (added by Denis-de-Bernardy, 8 years ago)
  • wp-load.php

     
    2020define( 'ABSPATH', dirname(__FILE__) . '/' );
    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') ) {
    2828
  • wp-settings.php

     
    218218} else {
    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
    226226// For an advanced caching plugin to use, static because you would only want one
     
    454454 * Used to guarantee unique hash cookies
    455455 * @since 1.5
    456456 */
    457 define('COOKIEHASH', md5(get_option('siteurl')));
     457if ( !defined('COOKIEHASH') )
     458        define('COOKIEHASH', md5(get_option('siteurl')));
    458459
    459460/**
    460461 * Should be exactly the same as the default value of SECRET_KEY in wp-config-sample.php
  • wp-admin/update.php

     
    5454                        echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
    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.
    6262                        include(WP_PLUGIN_DIR . '/' . $plugin);
  • wp-admin/plugins.php

     
    9494                                wp_die($valid);
    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.
    102102                        include(WP_PLUGIN_DIR . '/' . $plugin);