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);
error_reporting( E_ALL ^ E_NOTICE );
@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
$result = activate_plugin($plugin, false);
if ( is_wp_error( $result ) )
wp_die($result);
include(WP_PLUGIN_DIR . '/' . $plugin);
do_action('activate_' . $plugin);
exit;
break;
case 'deactivate':