From e01d886bfe3a55b502f5d36d27f179be6c60ae2d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 16 Dec 2010 07:41:38 +0000 Subject: [PATCH] Minor cleanups. git-svn-id: https://develop.svn.wordpress.org/trunk@16986 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/network/edit.php | 2 +- wp-admin/network/site-info.php | 4 ++-- wp-admin/network/site-new.php | 6 +++--- wp-admin/network/site-settings.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-admin/network/edit.php b/wp-admin/network/edit.php index 8937ada651..28ca4ac7c9 100644 --- a/wp-admin/network/edit.php +++ b/wp-admin/network/edit.php @@ -174,7 +174,7 @@ switch ( $_GET['action'] ) { if ( ! ( current_user_can( 'manage_sites' ) && current_user_can( 'delete_sites' ) ) ) wp_die( __( 'You do not have permission to access this page.' ) ); - if ( $id != '0' && $id != $current_site->blog_id && current_user_can ( 'delete_site', $id ) ) { + if ( $id != '0' && $id != $current_site->blog_id && current_user_can( 'delete_site', $id ) ) { wpmu_delete_blog( $id, true ); wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'delete' ), wp_get_referer() ) ); } else { diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php index 96d043eb09..6b8fa84d3f 100644 --- a/wp-admin/network/site-info.php +++ b/wp-admin/network/site-info.php @@ -13,8 +13,8 @@ require_once( './admin.php' ); if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); -if ( ! current_user_can('manage_sites') ) - wp_die(__('You do not have sufficient permissions to edit this site.')); +if ( ! current_user_can( 'manage_sites' ) ) + wp_die( __( 'You do not have sufficient permissions to edit this site.' ) ); add_contextual_help($current_screen, '

' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '

' . diff --git a/wp-admin/network/site-new.php b/wp-admin/network/site-new.php index ba13d5803e..b45b98b890 100644 --- a/wp-admin/network/site-new.php +++ b/wp-admin/network/site-new.php @@ -13,8 +13,8 @@ require_once( './admin.php' ); if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); -if ( ! current_user_can('manage_sites') ) - wp_die(__('You do not have sufficient permissions to add sites to this network.')); +if ( ! current_user_can( 'manage_sites' ) ) + wp_die( __( 'You do not have sufficient permissions to add sites to this network.' ) ); add_contextual_help($current_screen, '

' . __('This screen is for Super Admins to add new sites to the network. This is not affected by the registration settings.') . '

' . @@ -30,7 +30,7 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { if ( ! current_user_can( 'manage_sites' ) ) wp_die( __( 'You do not have permission to access this page.' ) ); - if ( is_array( $_POST['blog'] ) == false ) + if ( ! is_array( $_POST['blog'] ) ) wp_die( __( 'Can’t create an empty site.' ) ); $blog = $_POST['blog']; $domain = ''; diff --git a/wp-admin/network/site-settings.php b/wp-admin/network/site-settings.php index 1c9a67b532..42effcf3a4 100644 --- a/wp-admin/network/site-settings.php +++ b/wp-admin/network/site-settings.php @@ -13,8 +13,8 @@ require_once( './admin.php' ); if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); -if ( ! current_user_can('manage_sites') ) - wp_die(__('You do not have sufficient permissions to edit this site.')); +if ( ! current_user_can( 'manage_sites' ) ) + wp_die( __( 'You do not have sufficient permissions to edit this site.' ) ); add_contextual_help($current_screen, '

' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '

' .