WordPress.org

Make WordPress Core

Changeset 16967


Ignore:
Timestamp:
12/15/10 19:09:50 (4 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r16700 r16967  
    3838 
    3939    function check_permissions() { 
    40         if ( is_multisite() ) { 
    41             $menu_perms = get_site_option( 'menu_items', array() ); 
    42  
    43             if ( empty( $menu_perms['themes'] ) ) { 
    44                 if ( !is_super_admin() ) 
    45                     wp_die( __( 'Cheatin’ uh?' ) ); 
    46             } 
     40        $menu_perms = get_site_option( 'menu_items', array() ); 
     41 
     42        if ( empty( $menu_perms['themes'] ) ) { 
     43            if ( !is_super_admin() ) 
     44                wp_die( __( 'Cheatin’ uh?' ) ); 
    4745        } 
    4846 
Note: See TracChangeset for help on using the changeset viewer.