diff --git a/wp-admin/js/edit-comments.js b/wp-admin/js/edit-comments.js index d911eff2b7..ba016fb6f2 100644 --- a/wp-admin/js/edit-comments.js +++ b/wp-admin/js/edit-comments.js @@ -33,6 +33,7 @@ var delAfter = function( r, settings ) { if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') ) { 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(); } }); $('.post-com-count span.comment-count').each( function() { diff --git a/wp-admin/menu.php b/wp-admin/menu.php index e679c93513..618e36dc4d 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -17,7 +17,7 @@ else $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'), "$awaiting_mod" ), 'edit_posts', 'edit-comments.php'); +$menu[20] = array( sprintf( __('Comments %s'), "$awaiting_mod" ), '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') ) diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 107b163491..7f7103aa35 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -681,6 +681,10 @@ a.view-comment-post-link { width: 1em; } +#adminmenu li a .count-0 { + display: none; +} + .post-com-count { background-repeat: no-repeat; background-position: -240px bottom;