mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 04:04:35 +00:00
Coding standards, space after if
git-svn-id: https://develop.svn.wordpress.org/trunk@12752 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -40,17 +40,17 @@ if ( isset($_GET['action']) ) {
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
|
||||
|
||||
check_admin_referer('activate-plugin_' . $plugin);
|
||||
if( ! isset($_GET['failure']) && ! isset($_GET['success']) ) {
|
||||
if ( ! isset($_GET['failure']) && ! isset($_GET['success']) ) {
|
||||
wp_redirect( 'update.php?action=activate-plugin&failure=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce'] );
|
||||
activate_plugin($plugin);
|
||||
wp_redirect( 'update.php?action=activate-plugin&success=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce'] );
|
||||
die();
|
||||
}
|
||||
iframe_header( __('Plugin Reactivation'), true );
|
||||
if( isset($_GET['success']) )
|
||||
if ( isset($_GET['success']) )
|
||||
echo '<p>' . __('Plugin reactivated successfully.') . '</p>';
|
||||
|
||||
if( isset($_GET['failure']) ){
|
||||
if ( isset($_GET['failure']) ){
|
||||
echo '<p>' . __('Plugin failed to reactivate due to a fatal error.') . '</p>';
|
||||
|
||||
if ( defined('E_RECOVERABLE_ERROR') )
|
||||
|
||||
Reference in New Issue
Block a user