]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/update.php
Wordpress 2.9
[autoinstalls/wordpress.git] / wp-admin / update.php
index f05de5dffa0b4091722a0bc19b913f590992ac76..304c81f8b9c26824fe16f737154f65cdc493ed79 100644 (file)
@@ -52,7 +52,12 @@ if ( isset($_GET['action']) ) {
 
                if( isset($_GET['failure']) ){
                        echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
 
                if( isset($_GET['failure']) ){
                        echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
-                       error_reporting( E_ALL ^ E_NOTICE );
+
+                       if ( defined('E_RECOVERABLE_ERROR') )
+                               error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR);
+                       else
+                               error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
+
                        @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
                        include(WP_PLUGIN_DIR . '/' . $plugin);
                }
                        @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
                        include(WP_PLUGIN_DIR . '/' . $plugin);
                }