WordPress.org

Make WordPress Core

Changeset 16040


Ignore:
Timestamp:
10/28/10 08:38:02 (5 years ago)
Author:
nacin
Message:

Don't show plugin update counts on the non network admin menu. props PeteMall, see #14435.

File:
1 edited

Legend:

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

    r15881 r16040  
    168168$menu_perms = get_site_option('menu_items', array()); 
    169169if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $menu_perms['plugins'] ) ) { 
    170     $menu[65] = array( sprintf( __('Plugins %s'), "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); 
     170    $count = "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>"; 
     171    if ( is_multisite() ) 
     172        $count = ''; 
     173    $menu[65] = array( sprintf( __('Plugins %s'), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); 
    171174        $submenu['plugins.php'][5]  = array( __('Plugins'), 'activate_plugins', 'plugins.php' ); 
    172175        /* translators: add new plugin */ 
Note: See TracChangeset for help on using the changeset viewer.