mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Lots of fixes for Notices when WP_DEBUG is set. See #6669 props santosj.
git-svn-id: https://develop.svn.wordpress.org/trunk@8589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -27,7 +27,10 @@ $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='c
|
||||
$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');
|
||||
|
||||
$update_plugins = get_option( 'update_plugins' );
|
||||
$update_count = count( $update_plugins->response );
|
||||
$update_count = 0;
|
||||
if ( isset( $update_plugins->response ) )
|
||||
$update_count = count( $update_plugins->response );
|
||||
|
||||
$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');
|
||||
if ( current_user_can('edit_users') )
|
||||
$menu[40] = array(__('Users'), 'edit_users', 'users.php');
|
||||
|
||||
Reference in New Issue
Block a user