WordPress.org

Make WordPress Core

Changeset 9257


Ignore:
Timestamp:
10/20/08 19:46:07 (6 years ago)
Author:
ryan
Message:

Bring back plugin updates count. Needs styling.

File:
1 edited

Legend:

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

    r9256 r9257  
    6060    $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php'); 
    6161 
    62 $menu[35] = array( __('Plugins'), 'activate_plugins', 'plugins.php', '', '', 'menu-plugins', 'images/menu/plugins.png' ); 
     62$update_plugins = get_option( 'update_plugins' ); 
     63$update_count = count( $update_plugins->response );  
     64$menu[35] = array( sprintf( __('Plugins %s'), "<span id='update-plugins' class='count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', '', 'menu-plugins', 'images/menu/plugins.png' ); 
    6365    $submenu['plugins.php'][15] = array(_c('Add New|plugin'), 'install_plugins', 'plugin-install.php');  
    6466    $submenu['plugins.php'][5]  = array( __('Installed'), 'activate_plugins', 'plugins.php' ); 
Note: See TracChangeset for help on using the changeset viewer.