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
This commit is contained in:
Peter Westwood 2010-12-15 19:09:50 +00:00
parent d48ff05f70
commit ca8fa5e2bd
1 changed files with 4 additions and 6 deletions

View File

@ -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') )