Fix plugin activation error reporting. Props DD32. fixes #7671
git-svn-id: https://develop.svn.wordpress.org/trunk@9352 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9d3edef108
commit
f38fb4c796
@ -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
Block a user