Move awaiting moderation title to the .ab-item link so that it's easier to display. Fixes #19403.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2011-11-30 21:59:18 +00:00
parent 1d9b3eeb30
commit 1fe06274f3
1 changed files with 5 additions and 4 deletions

View File

@ -518,10 +518,10 @@ function wp_admin_bar_comments_menu( $wp_admin_bar ) {
$awaiting_mod = $awaiting_mod->moderated;
$awaiting_title = esc_attr( sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ) );
$icon = "<div class='ab-comments-icon' title='$awaiting_title'>";
$icon .= "<div class='ab-comments-icon-body'></div>";
$icon .= "<div class='ab-comments-icon-arrow'></div>";
$icon .= "</div>";
$icon = '<div class="ab-comments-icon">';
$icon .= '<div class="ab-comments-icon-body"></div>';
$icon .= '<div class="ab-comments-icon-arrow"></div>';
$icon .= '</div>';
$title = '<span id="ab-awaiting-mod" class="awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>';
@ -529,6 +529,7 @@ function wp_admin_bar_comments_menu( $wp_admin_bar ) {
'id' => 'comments',
'title' => $icon . $title,
'href' => admin_url('edit-comments.php'),
'meta' => array( 'title' => $awaiting_title ),
) );
}