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/plugins.php

    r12375 r12383  
    9494                wp_die($valid);
    9595
    96             error_reporting( E_ALL ^ E_NOTICE );
     96            if ( defined('E_RECOVERABLE_ERROR') )
     97                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
     98            else
     99                error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
     100
    97101            @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
    98102            include(WP_PLUGIN_DIR . '/' . $plugin);
Note: See TracChangeset for help on using the changeset viewer.