WordPress.org

Make WordPress Core

Ticket #12395: 12395.3.diff

File 12395.3.diff, 3.3 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-includes/load.php

     
    262262                }
    263263        } else {
    264264                if ( defined( 'E_RECOVERABLE_ERROR' ) )
    265                         error_reporting( E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
     265                        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 );
    266266                else
    267                         error_reporting( E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING );
     267                        error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING );
    268268        }
    269269}
    270270
  • 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

     
    149149
    150150                        if ( ! WP_DEBUG ) {
    151151                                if ( defined('E_RECOVERABLE_ERROR') )
    152                                         error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     152                                        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);
    153153                                else
    154                                         error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     154                                        error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    155155                        }
    156156
    157157                        @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.