Make WordPress Core

Changeset 19105


Ignore:
Timestamp:
11/01/2011 08:42:40 PM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r19104 r19105  
    576576    $icon .= "</div>";
    577577
    578     if ( $awaiting_mod )
    579         $title = sprintf( _n('%s Comment', '%s Comments', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
    580     else
    581         $title = __('Comments');
     578    $title = ( $awaiting_mod ) ? '<span id="ab-awaiting-mod" class="pending-count">' . number_format_i18n( $awaiting_mod ) . '</span>' : '';
    582579
    583580    $wp_admin_bar->add_menu( array(
Note: See TracChangeset for help on using the changeset viewer.