Fix live update of comment bubble. Drop text to avoid translation difficulties. Props SergeyBiryukov. fixes #18809

git-svn-id: https://develop.svn.wordpress.org/trunk@19105 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-11-01 20:42:40 +00:00
parent 795073ef01
commit 03139f2eec
1 changed files with 1 additions and 4 deletions

View File

@ -575,10 +575,7 @@ function wp_admin_bar_comments_menu( $wp_admin_bar ) {
$icon .= "<div class='ab-comments-icon-arrow'></div>";
$icon .= "</div>";
if ( $awaiting_mod )
$title = sprintf( _n('%s Comment', '%s Comments', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
else
$title = __('Comments');
$title = ( $awaiting_mod ) ? '<span id="ab-awaiting-mod" class="pending-count">' . number_format_i18n( $awaiting_mod ) . '</span>' : '';
$wp_admin_bar->add_menu( array(
'id' => 'comments',