WordPress.org

Make WordPress Core

Ticket #18809: 18809.patch

File 18809.patch, 667 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/admin-bar.php

     
    550550        $icon .= "<div class='ab-comments-icon-arrow'></div>"; 
    551551        $icon .= "</div>"; 
    552552 
    553         if ( $awaiting_mod ) 
    554                 $title = sprintf( _n('%d Comment', '%d Comments', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ); 
    555         else 
    556                 $title = __('Comments'); 
     553        $title = ( $awaiting_mod ) ? '<span id="ab-awaiting-mod" class="pending-count">' . number_format_i18n( $awaiting_mod ) . '</span>' : ''; 
    557554 
    558555        $wp_admin_bar->add_menu( array( 
    559556                'id'    => 'comments',