WordPress.org

Make WordPress Core

Changeset 19399


Ignore:
Timestamp:
11/22/2011 04:21:45 PM (7 years ago)
Author:
ryan
Message:

Don't forget esc_attr(). see #19327

File:
1 edited

Legend:

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

    r19398 r19399  
    517517    $awaiting_mod = wp_count_comments();
    518518    $awaiting_mod = $awaiting_mod->moderated;
    519     $awaiting_title = sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) );
     519    $awaiting_title = esc_attr( sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ) );
    520520
    521521    $icon  = "<div class='ab-comments-icon' title='$awaiting_title'>";
Note: See TracChangeset for help on using the changeset viewer.