WordPress.org

Make WordPress Core

Ticket #14435: 14435.12.diff

File 14435.12.diff, 1.2 KB (added by PeteMall, 9 years ago)

Remove plugin update count from menu.

  • wp-admin/menu.php

     
    167167
    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() && !is_network_admin() )
     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 */
    173176                $submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php');