Index: wp-admin/wp-admin.css
===================================================================
--- wp-admin/wp-admin.css (revision 7052)
+++ wp-admin/wp-admin.css (working copy)
@@ -786,6 +786,10 @@
width: 1em;
}
+#adminmenu li a .count-0 {
+ display: none;
+}
+
.post-com-count {
background-image: url(images/comment-stalk.gif);
background-repeat: no-repeat;
Index: wp-admin/js/edit-comments.js
===================================================================
--- wp-admin/js/edit-comments.js (revision 7052)
+++ wp-admin/js/edit-comments.js (working copy)
@@ -21,6 +21,7 @@
if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') && parseInt(a.html(),10) > 0 ) {
var n = parseInt(a.html(),10) - 1;
a.html( n.toString() );
+ ( 0 < n ) ? $('#awaiting-mod').each(function() { $(this).show(); $(this).removeClass('count-0') }) : $('#awaiting-mod').hide();
}
});
Index: wp-admin/menu.php
===================================================================
--- wp-admin/menu.php (revision 7052)
+++ wp-admin/menu.php (working copy)
@@ -17,7 +17,7 @@
$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
$menu[15] = array(__('Design'), 'switch_themes', 'themes.php');
-$menu[20] = array( sprintf( __('Comments %s'), "" ), 'edit_posts', 'edit-comments.php');
+$menu[20] = array( sprintf( __('Comments %s'), "" ), 'edit_posts', 'edit-comments.php');
$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');
$menu[35] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
if ( current_user_can('edit_users') )