Make WordPress Core


Ignore:
Timestamp:
06/30/2012 12:40:25 PM (13 years ago)
Author:
nacin
Message:

Enforce multisite plugins menu preference in map_meta_cap(). This means a simple current_user_can('activate_plugins') check will handle the 'Enable administration menus' setting.

Remove bogus checks for enabling/disabling the 'themes' menu (something core does not handle out of the box) when in the network admin.

fixes #21123.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-themes.php

    r20713 r21198  
    1313if ( ! is_multisite() )
    1414    wp_die( __( 'Multisite support is not enabled.' ) );
    15 
    16 $menu_perms = get_site_option( 'menu_items', array() );
    17 
    18 if ( empty( $menu_perms['themes'] ) && ! is_super_admin() )
    19     wp_die( __( 'Cheatin’ uh?' ) );
    2015
    2116if ( ! current_user_can( 'manage_sites' ) )
Note: See TracChangeset for help on using the changeset viewer.