Make WordPress Core


Ignore:
Timestamp:
08/08/2008 05:05:10 PM (17 years ago)
Author:
westi
Message:

Lots of fixes for Notices when WP_DEBUG is set. See #6669 props santosj.

File:
1 edited

Legend:

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

    r8540 r8589  
    2828
    2929$update_plugins = get_option( 'update_plugins' );
    30 $update_count = count( $update_plugins->response );
     30$update_count = 0;
     31if ( isset( $update_plugins->response ) )
     32    $update_count = count( $update_plugins->response );
     33
    3134$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');
    3235if ( current_user_can('edit_users') )
Note: See TracChangeset for help on using the changeset viewer.