This is only for use in the Network admin when it is always multisite.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-12-15 19:09:50 +00:00
parent c9809f18f3
commit dd86bd529f

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