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:
parent
2ddfa72692
commit
f68bd416e8
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue