Minor cleanups.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-16 07:41:38 +00:00
parent a60664a37b
commit 31b4959b1b
4 changed files with 8 additions and 8 deletions

View File

@ -174,7 +174,7 @@ switch ( $_GET['action'] ) {
if ( ! ( current_user_can( 'manage_sites' ) && current_user_can( 'delete_sites' ) ) ) if ( ! ( current_user_can( 'manage_sites' ) && current_user_can( 'delete_sites' ) ) )
wp_die( __( 'You do not have permission to access this page.' ) ); 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 ); wpmu_delete_blog( $id, true );
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'delete' ), wp_get_referer() ) ); wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'delete' ), wp_get_referer() ) );
} else { } else {

View File

@ -13,8 +13,8 @@ require_once( './admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); wp_die( __( 'Multisite support is not enabled.' ) );
if ( ! current_user_can('manage_sites') ) if ( ! current_user_can( 'manage_sites' ) )
wp_die(__('You do not have sufficient permissions to edit this site.')); wp_die( __( 'You do not have sufficient permissions to edit this site.' ) );
add_contextual_help($current_screen, add_contextual_help($current_screen,
'<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .

View File

@ -13,8 +13,8 @@ require_once( './admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); wp_die( __( 'Multisite support is not enabled.' ) );
if ( ! current_user_can('manage_sites') ) if ( ! current_user_can( 'manage_sites' ) )
wp_die(__('You do not have sufficient permissions to add sites to this network.')); wp_die( __( 'You do not have sufficient permissions to add sites to this network.' ) );
add_contextual_help($current_screen, add_contextual_help($current_screen,
'<p>' . __('This screen is for Super Admins to add new sites to the network. This is not affected by the registration settings.') . '</p>' . '<p>' . __('This screen is for Super Admins to add new sites to the network. This is not affected by the registration settings.') . '</p>' .
@ -30,7 +30,7 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) {
if ( ! current_user_can( 'manage_sites' ) ) if ( ! current_user_can( 'manage_sites' ) )
wp_die( __( 'You do not have permission to access this page.' ) ); 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&#8217;t create an empty site.' ) ); wp_die( __( 'Can&#8217;t create an empty site.' ) );
$blog = $_POST['blog']; $blog = $_POST['blog'];
$domain = ''; $domain = '';

View File

@ -13,8 +13,8 @@ require_once( './admin.php' );
if ( ! is_multisite() ) if ( ! is_multisite() )
wp_die( __( 'Multisite support is not enabled.' ) ); wp_die( __( 'Multisite support is not enabled.' ) );
if ( ! current_user_can('manage_sites') ) if ( ! current_user_can( 'manage_sites' ) )
wp_die(__('You do not have sufficient permissions to edit this site.')); wp_die( __( 'You do not have sufficient permissions to edit this site.' ) );
add_contextual_help($current_screen, add_contextual_help($current_screen,
'<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' .