mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 17:42:26 +01:00
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:
parent
795073ef01
commit
03139f2eec
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user