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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-11-01 20:42:40 +00:00
parent 58eee18833
commit fe035ab2c8
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',