WordPress.org

Make WordPress Core

Changeset 17267


Ignore:
Timestamp:
01/12/11 07:12:59 (3 years ago)
Author:
nacin
Message:

Multisite super admins should still be able to see the Plugins menu in the site admin. fixes #16184.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r17259 r17267  
    170170 
    171171$menu_perms = get_site_option('menu_items', array()); 
    172 if ( ! is_multisite() || ! empty( $menu_perms['plugins'] ) ) { 
     172if ( ! is_multisite() || is_super_admin() || ! empty( $menu_perms['plugins'] ) ) { 
    173173    $count = "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>"; 
    174174    if ( is_multisite() ) 
Note: See TracChangeset for help on using the changeset viewer.