[wp-trac] [WordPress Trac] #21123: Enforce multisite plugins menu preference in map_meta_cap()
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 30 12:33:32 UTC 2012
#21123: Enforce multisite plugins menu preference in map_meta_cap()
-------------------------+-----------------------
Reporter: nacin | Owner: nacin
Type: enhancement | Status: accepted
Priority: normal | Milestone: 3.5
Component: Multisite | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by nacin):
Additionally, these checks make little sense in the network admin:
{{{
$menu_perms = get_site_option( 'menu_items', array() );
if ( empty( $menu_perms['themes'] ) && ! is_super_admin() )
wp_die( __( 'Cheatin’ uh?' ) );
if ( !current_user_can('manage_network_themes') )
wp_die( __( 'You do not have sufficient permissions to manage
network themes.' ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21123#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list