WordPress.org

Make WordPress Core

Ticket #19403: 19403.diff

File 19403.diff, 1.1 KB (added by duck_, 2 years ago)
  • wp-includes/admin-bar.php

     
    518518        $awaiting_mod = $awaiting_mod->moderated; 
    519519        $awaiting_title = esc_attr( sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ) ); 
    520520 
    521         $icon  = "<div class='ab-comments-icon' title='$awaiting_title'>"; 
    522         $icon .= "<div class='ab-comments-icon-body'></div>"; 
    523         $icon .= "<div class='ab-comments-icon-arrow'></div>"; 
    524         $icon .= "</div>"; 
     521        $icon  = '<div class="ab-comments-icon">'; 
     522        $icon .= '<div class="ab-comments-icon-body"></div>'; 
     523        $icon .= '<div class="ab-comments-icon-arrow"></div>'; 
     524        $icon .= '</div>'; 
    525525 
    526526        $title = '<span id="ab-awaiting-mod" class="awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>'; 
    527527 
     
    529529                'id'    => 'comments', 
    530530                'title' => $icon . $title, 
    531531                'href'  => admin_url('edit-comments.php'), 
     532                'meta'  => array( 'title' => $awaiting_title ), 
    532533        ) ); 
    533534} 
    534535