WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/22/2011 04:19:05 PM (10 years ago)
Author:
ryan
Message:

Don't show Add New and Comments admin bar menus in network or user admins. Add tooltip to comments menu. Props ocean90. fixes #19327

File:
1 edited

Legend:

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

    r19373 r19398  
    517517    $awaiting_mod = wp_count_comments();
    518518    $awaiting_mod = $awaiting_mod->moderated;
    519 
    520     $icon  = "<div class='ab-comments-icon'>";
     519    $awaiting_title = sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
     520
     521    $icon  = "<div class='ab-comments-icon' title='$awaiting_title'>";
    521522    $icon .= "<div class='ab-comments-icon-body'></div>";
    522523    $icon .= "<div class='ab-comments-icon-arrow'></div>";
Note: See TracChangeset for help on using the changeset viewer.