Tweaks for the admin bar comment bubble: allow JS updating the count, center the bubble when no pending comments, props duck_, fixes #18809

git-svn-id: https://develop.svn.wordpress.org/trunk@19156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-11-04 15:55:00 +00:00
parent 731127e61b
commit 3ee304ae1e
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -559,7 +559,7 @@ function wp_admin_bar_comments_menu( $wp_admin_bar ) {
$icon .= "<div class='ab-comments-icon-arrow'></div>";
$icon .= "</div>";
$title = ( $awaiting_mod ) ? '<span id="ab-awaiting-mod" class="pending-count">' . number_format_i18n( $awaiting_mod ) . '</span>' : '';
$title = '<span id="ab-awaiting-mod" class="awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>';
$wp_admin_bar->add_menu( array(
'id' => 'comments',