Don't forget esc_attr(). see #19327

git-svn-id: http://svn.automattic.com/wordpress/trunk@19399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-11-22 16:21:45 +00:00
parent 28152dfd20
commit 5452769a3e
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ function wp_admin_bar_comments_menu( $wp_admin_bar ) {
$awaiting_mod = wp_count_comments();
$awaiting_mod = $awaiting_mod->moderated;
$awaiting_title = sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
$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>";