WordPress.org

Make WordPress Core

Ticket #16920: 16920.E_RECOVERABLE_ERROR.diff

File 16920.E_RECOVERABLE_ERROR.diff, 2.5 KB (added by duck_, 9 years ago)
  • wp-admin/plugins.php

     
    137137                                wp_die($valid);
    138138
    139139                        if ( ! WP_DEBUG ) {
    140                                 if ( defined('E_RECOVERABLE_ERROR') )
    141                                         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);
    142                                 else
    143                                         error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     140                                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 );
    144141                        }
    145142
    146143                        @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
  • wp-admin/update.php

     
    8282                if ( isset($_GET['failure']) ){
    8383                        echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
    8484
    85                         if ( defined('E_RECOVERABLE_ERROR') )
    86                                 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);
    87                         else
    88                                 error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
    89 
     85                        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 );
    9086                        @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
    9187                        include(WP_PLUGIN_DIR . '/' . $plugin);
    9288                }
  • wp-includes/load.php

     
    271271                        ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' );
    272272                }
    273273        } else {
    274                 if ( defined( 'E_RECOVERABLE_ERROR' ) )
    275                         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 );
    276                 else
    277                         error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING );
     274                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 );
    278275        }
    279276}
    280277