Don't forget esc_attr(). see #19327
git-svn-id: https://develop.svn.wordpress.org/trunk@19399 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1ae56f59eb
commit
700f2b4099
@ -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>";
|
||||
|
Loading…
Reference in New Issue
Block a user