From ca8fa5e2bd73586fe0850d7942b9e162cffaf151 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 15 Dec 2010 19:09:50 +0000 Subject: [PATCH] This is only for use in the Network admin when it is always multisite. git-svn-id: https://develop.svn.wordpress.org/trunk@16967 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-ms-themes-list-table.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 5d36f42ecf..df8f88c19f 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -37,13 +37,11 @@ class WP_MS_Themes_List_Table extends WP_List_Table { } function check_permissions() { - if ( is_multisite() ) { - $menu_perms = get_site_option( 'menu_items', array() ); + $menu_perms = get_site_option( 'menu_items', array() ); - if ( empty( $menu_perms['themes'] ) ) { - if ( !is_super_admin() ) - wp_die( __( 'Cheatin’ uh?' ) ); - } + if ( empty( $menu_perms['themes'] ) ) { + if ( !is_super_admin() ) + wp_die( __( 'Cheatin’ uh?' ) ); } if ( $this->is_site_themes && !current_user_can('manage_sites') )