Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update.php

    r17632 r16860  
    8383            echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
    8484
    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 );
     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
    8690            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
    8791            include(WP_PLUGIN_DIR . '/' . $plugin);
Note: See TracChangeset for help on using the changeset viewer.