Make WordPress Core

Changeset 9474


Ignore:
Timestamp:
11/02/2008 08:42:43 PM (17 years ago)
Author:
ryan
Message:

Fix warning

File:
1 edited

Legend:

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

    r9441 r9474  
    6262
    6363$update_plugins = get_option( 'update_plugins' );
    64 $update_count = count( $update_plugins->response );
     64$update_count = 0;
     65if ( !empty($update_plugins->response) )
     66    $update_count = count( $update_plugins->response );
     67
    6568$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' );
    6669    $submenu['plugins.php'][5]  = array( __('Installed'), 'activate_plugins', 'plugins.php' );
Note: See TracChangeset for help on using the changeset viewer.