Make WordPress Core


Ignore:
Timestamp:
12/12/2009 09:20:07 AM (16 years ago)
Author:
azaozz
Message:

Do not stop plugin activation due to E_DEPRECATED errors in php 5.3, props Denis-de-Bernardy, fixes #11250

File:
1 edited

Legend:

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

    r11013 r12383  
    5353        if( isset($_GET['failure']) ){
    5454            echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
    55             error_reporting( E_ALL ^ E_NOTICE );
     55
     56            if ( defined('E_RECOVERABLE_ERROR') )
     57                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     58            else
     59                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     60
    5661            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
    5762            include(WP_PLUGIN_DIR . '/' . $plugin);
Note: See TracChangeset for help on using the changeset viewer.