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);
|
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':
|
||||||
|
|
Loading…
Reference in New Issue