Make WordPress Core


Ignore:
Timestamp:
07/10/2008 07:35:20 AM (17 years ago)
Author:
matt
Message:

Check for plugin updates more frequently, notify with double bubble trouble. Hat tip: mdawaffe. Fixes #7265.

File:
1 edited

Legend:

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

    r7857 r8305  
    2626$menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php');
    2727$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');
    28 $menu[35] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
     28
     29$update_plugins = get_option( 'update_plugins' );
     30$update_count = count( $update_plugins->response );
     31$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');
    2932if ( current_user_can('edit_users') )
    3033    $menu[40] = array(__('Users'), 'edit_users', 'users.php');
Note: See TracChangeset for help on using the changeset viewer.