Fix plugin activation error reporting. Props DD32. fixes #7671

git-svn-id: http://svn.automattic.com/wordpress/trunk@9352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-26 06:33:33 +00:00
parent 2ddfa72692
commit f68bd416e8
1 changed files with 2 additions and 3 deletions

View File

@ -59,9 +59,8 @@ if( !empty($action) ) {
wp_die($valid); wp_die($valid);
error_reporting( E_ALL ^ E_NOTICE ); error_reporting( E_ALL ^ E_NOTICE );
@ini_set('display_errors', true); //Ensure that Fatal errors are displayed. @ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
$result = activate_plugin($plugin, false); include(WP_PLUGIN_DIR . '/' . $plugin);
if ( is_wp_error( $result ) ) do_action('activate_' . $plugin);
wp_die($result);
exit; exit;
break; break;
case 'deactivate': case 'deactivate':