diff --git a/wp-admin/ms-admin.php b/wp-admin/ms-admin.php index 8c9eee14f2..a783fb3f1b 100644 --- a/wp-admin/ms-admin.php +++ b/wp-admin/ms-admin.php @@ -14,9 +14,8 @@ add_action( 'admin_head', 'index_css' ); require_once('admin-header.php'); -if ( is_site_admin() == false ) { +if ( !is_super_admin() ) wp_die( __('You do not have permission to access this page.') ); -} global $wpdb; $c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}"); diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index fe48e8fe7a..c26f6ca6a7 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -4,9 +4,8 @@ require_once('admin.php'); if ( !is_multisite() ) wp_die( __('Multisite support is not enabled.') ); -if( is_site_admin() == false ) { +if ( !is_super_admin() ) wp_die( __('You do not have permission to access this page.') ); -} do_action('wpmuadminedit', ''); diff --git a/wp-admin/ms-sites.php b/wp-admin/ms-sites.php index 3cc45b5405..41fe86c83a 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -10,9 +10,10 @@ $parent_file = 'ms-admin.php'; wp_enqueue_script( 'admin-forms' ); require_once('admin-header.php'); -if( is_site_admin() == false ) { - wp_die( __('You do not have permission to access this page.') ); -} + +if ( !is_super_admin() ) + wp_die( __('You do not have permission to access this page.') ); + $id = intval( $_GET['id'] ); $protocol = is_ssl() ? 'https://' : 'http://'; diff --git a/wp-admin/ms-upgrade-site.php b/wp-admin/ms-upgrade-site.php index 8e16d2f626..af095af7cd 100644 --- a/wp-admin/ms-upgrade-site.php +++ b/wp-admin/ms-upgrade-site.php @@ -10,9 +10,8 @@ $title = __('Upgrade Site'); $parent_file = 'ms-admin.php'; require_once('admin-header.php'); -if ( is_site_admin() == false ) { - wp_die( __('You do not have permission to access this page.') ); -} +if ( !is_super_admin() ) + wp_die( __('You do not have permission to access this page.') ); echo '