equal
deleted
inserted
replaced
50 if( isset($_GET['success']) ) |
50 if( isset($_GET['success']) ) |
51 echo '<p>' . __('Plugin reactivated successfully.') . '</p>'; |
51 echo '<p>' . __('Plugin reactivated successfully.') . '</p>'; |
52 |
52 |
53 if( isset($_GET['failure']) ){ |
53 if( isset($_GET['failure']) ){ |
54 echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>'; |
54 echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>'; |
55 error_reporting( E_ALL ^ E_NOTICE ); |
55 |
|
56 if ( defined('E_RECOVERABLE_ERROR') ) |
|
57 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR); |
|
58 else |
|
59 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING); |
|
60 |
56 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. |
61 @ini_set('display_errors', true); //Ensure that Fatal errors are displayed. |
57 include(WP_PLUGIN_DIR . '/' . $plugin); |
62 include(WP_PLUGIN_DIR . '/' . $plugin); |
58 } |
63 } |
59 iframe_footer(); |
64 iframe_footer(); |
60 } elseif ( 'install-plugin' == $action ) { |
65 } elseif ( 'install-plugin' == $action ) { |