Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/19/2015 04:27:37 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Templates: Escape all gettext output in default template parts. See #1999.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/user-profile.php

    r4733 r5688  
    1313
    1414    <div id="bbp-user-profile" class="bbp-user-profile">
    15         <h2 class="entry-title"><?php _e( 'Profile', 'bbpress' ); ?></h2>
     15        <h2 class="entry-title"><?php esc_html_e( 'Profile', 'bbpress' ); ?></h2>
    1616        <div class="bbp-user-section">
    1717
     
    2222            <?php endif; ?>
    2323
    24             <p class="bbp-user-forum-role"><?php  printf( __( 'Forum Role: %s',      'bbpress' ), bbp_get_user_display_role()    ); ?></p>
    25             <p class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>
    26             <p class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>
     24            <p class="bbp-user-forum-role"><?php  printf( esc_html__( 'Forum Role: %s',      'bbpress' ), bbp_get_user_display_role()    ); ?></p>
     25            <p class="bbp-user-topic-count"><?php printf( esc_html__( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>
     26            <p class="bbp-user-reply-count"><?php printf( esc_html__( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>
    2727        </div>
    2828    </div><!-- #bbp-author-topics-started -->
Note: See TracChangeset for help on using the changeset viewer.