Skip to:
Content

bbPress.org

Changeset 5688


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

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

Location:
trunk/src/templates/default
Files:
43 edited

Legend:

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

    r5466 r5688  
    4949        parent::__construct( bbp_parse_args( $properties, array(
    5050            'id'      => 'default',
    51             'name'    => __( 'bbPress Default', 'bbpress' ),
     51            'name'    => 'bbPress Default',
    5252            'version' => bbp_get_version(),
    5353            'dir'     => trailingslashit( bbpress()->themes_dir . 'default' ),
     
    241241            wp_localize_script( 'bbpress-forum', 'bbpForumJS', array(
    242242                'bbp_ajaxurl'        => bbp_get_ajax_url(),
    243                 'generic_ajax_error' => __( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),
     243                'generic_ajax_error' => esc_html__( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),
    244244                'is_user_logged_in'  => is_user_logged_in(),
    245245                'subs_nonce'         => wp_create_nonce( 'toggle-subscription_' . get_the_ID() )
     
    250250            wp_localize_script( 'bbpress-topic', 'bbpTopicJS', array(
    251251                'bbp_ajaxurl'        => bbp_get_ajax_url(),
    252                 'generic_ajax_error' => __( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),
     252                'generic_ajax_error' => esc_html__( 'Something went wrong. Refresh your browser and try again.', 'bbpress' ),
    253253                'is_user_logged_in'  => is_user_logged_in(),
    254254                'fav_nonce'          => wp_create_nonce( 'toggle-favorite_' .     get_the_ID() ),
     
    278278        // Bail if subscriptions are not active
    279279        if ( ! bbp_is_subscriptions_active() ) {
    280             bbp_ajax_response( false, __( 'Subscriptions are no longer active.', 'bbpress' ), 300 );
     280            bbp_ajax_response( false, esc_html__( 'Subscriptions are no longer active.', 'bbpress' ), 300 );
    281281        }
    282282
    283283        // Bail if user is not logged in
    284284        if ( ! is_user_logged_in() ) {
    285             bbp_ajax_response( false, __( 'Please login to subscribe to this forum.', 'bbpress' ), 301 );
     285            bbp_ajax_response( false, esc_html__( 'Please login to subscribe to this forum.', 'bbpress' ), 301 );
    286286        }
    287287
     
    292292        // Bail if user cannot add favorites for this user
    293293        if ( ! current_user_can( 'edit_user', $user_id ) ) {
    294             bbp_ajax_response( false, __( 'You do not have permission to do this.', 'bbpress' ), 302 );
     294            bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 );
    295295        }
    296296
     
    300300        // Bail if forum cannot be found
    301301        if ( empty( $forum ) ) {
    302             bbp_ajax_response( false, __( 'The forum could not be found.', 'bbpress' ), 303 );
     302            bbp_ajax_response( false, esc_html__( 'The forum could not be found.', 'bbpress' ), 303 );
    303303        }
    304304
    305305        // Bail if user did not take this action
    306306        if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-subscription_' . $forum->ID ) ) {
    307             bbp_ajax_response( false, __( 'Are you sure you meant to do that?', 'bbpress' ), 304 );
     307            bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 );
    308308        }
    309309
     
    313313        // Bail if action failed
    314314        if ( empty( $status ) ) {
    315             bbp_ajax_response( false, __( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );
     315            bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );
    316316        }
    317317
     
    346346        // Bail if favorites are not active
    347347        if ( ! bbp_is_favorites_active() ) {
    348             bbp_ajax_response( false, __( 'Favorites are no longer active.', 'bbpress' ), 300 );
     348            bbp_ajax_response( false, esc_html__( 'Favorites are no longer active.', 'bbpress' ), 300 );
    349349        }
    350350
    351351        // Bail if user is not logged in
    352352        if ( ! is_user_logged_in() ) {
    353             bbp_ajax_response( false, __( 'Please login to make this topic a favorite.', 'bbpress' ), 301 );
     353            bbp_ajax_response( false, esc_html__( 'Please login to make this topic a favorite.', 'bbpress' ), 301 );
    354354        }
    355355
     
    360360        // Bail if user cannot add favorites for this user
    361361        if ( ! current_user_can( 'edit_user', $user_id ) ) {
    362             bbp_ajax_response( false, __( 'You do not have permission to do this.', 'bbpress' ), 302 );
     362            bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 );
    363363        }
    364364
     
    368368        // Bail if topic cannot be found
    369369        if ( empty( $topic ) ) {
    370             bbp_ajax_response( false, __( 'The topic could not be found.', 'bbpress' ), 303 );
     370            bbp_ajax_response( false, esc_html__( 'The topic could not be found.', 'bbpress' ), 303 );
    371371        }
    372372
    373373        // Bail if user did not take this action
    374374        if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-favorite_' . $topic->ID ) ) {
    375             bbp_ajax_response( false, __( 'Are you sure you meant to do that?', 'bbpress' ), 304 );
     375            bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 );
    376376        }
    377377
     
    381381        // Bail if action failed
    382382        if ( empty( $status ) ) {
    383             bbp_ajax_response( false, __( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );
     383            bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );
    384384        }
    385385
     
    414414        // Bail if subscriptions are not active
    415415        if ( ! bbp_is_subscriptions_active() ) {
    416             bbp_ajax_response( false, __( 'Subscriptions are no longer active.', 'bbpress' ), 300 );
     416            bbp_ajax_response( false, esc_html__( 'Subscriptions are no longer active.', 'bbpress' ), 300 );
    417417        }
    418418
    419419        // Bail if user is not logged in
    420420        if ( ! is_user_logged_in() ) {
    421             bbp_ajax_response( false, __( 'Please login to subscribe to this topic.', 'bbpress' ), 301 );
     421            bbp_ajax_response( false, esc_html__( 'Please login to subscribe to this topic.', 'bbpress' ), 301 );
    422422        }
    423423
     
    428428        // Bail if user cannot add favorites for this user
    429429        if ( ! current_user_can( 'edit_user', $user_id ) ) {
    430             bbp_ajax_response( false, __( 'You do not have permission to do this.', 'bbpress' ), 302 );
     430            bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 );
    431431        }
    432432
     
    436436        // Bail if topic cannot be found
    437437        if ( empty( $topic ) ) {
    438             bbp_ajax_response( false, __( 'The topic could not be found.', 'bbpress' ), 303 );
     438            bbp_ajax_response( false, esc_html__( 'The topic could not be found.', 'bbpress' ), 303 );
    439439        }
    440440
    441441        // Bail if user did not take this action
    442442        if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-subscription_' . $topic->ID ) ) {
    443             bbp_ajax_response( false, __( 'Are you sure you meant to do that?', 'bbpress' ), 304 );
     443            bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 );
    444444        }
    445445
     
    449449        // Bail if action failed
    450450        if ( empty( $status ) ) {
    451             bbp_ajax_response( false, __( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );
     451            bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );
    452452        }
    453453
  • trunk/src/templates/default/bbpress/content-single-topic-lead.php

    r5403 r5688  
    1616    <li class="bbp-header">
    1717
    18         <div class="bbp-topic-author"><?php  _e( 'Creator',  'bbpress' ); ?></div><!-- .bbp-topic-author -->
     18        <div class="bbp-topic-author"><?php esc_html_e( 'Creator',  'bbpress' ); ?></div><!-- .bbp-topic-author -->
    1919
    2020        <div class="bbp-topic-content">
    2121
    22             <?php _e( 'Topic', 'bbpress' ); ?>
     22            <?php esc_html_e( 'Topic', 'bbpress' ); ?>
    2323
    2424        </div><!-- .bbp-topic-content -->
     
    8484    <li class="bbp-footer">
    8585
    86         <div class="bbp-topic-author"><?php  _e( 'Creator',  'bbpress' ); ?></div>
     86        <div class="bbp-topic-author"><?php esc_html_e( 'Creator',  'bbpress' ); ?></div>
    8787
    8888        <div class="bbp-topic-content">
    8989
    90             <?php _e( 'Topic', 'bbpress' ); ?>
     90            <?php esc_html_e( 'Topic', 'bbpress' ); ?>
    9191
    9292        </div><!-- .bbp-topic-content -->
  • trunk/src/templates/default/bbpress/content-statistics.php

    r4794 r5688  
    1515    <?php do_action( 'bbp_before_statistics' ); ?>
    1616
    17     <dt><?php _e( 'Registered Users', 'bbpress' ); ?></dt>
     17    <dt><?php esc_html_e( 'Registered Users', 'bbpress' ); ?></dt>
    1818    <dd>
    1919        <strong><?php echo esc_html( $stats['user_count'] ); ?></strong>
    2020    </dd>
    2121
    22     <dt><?php _e( 'Forums', 'bbpress' ); ?></dt>
     22    <dt><?php esc_html_e( 'Forums', 'bbpress' ); ?></dt>
    2323    <dd>
    2424        <strong><?php echo esc_html( $stats['forum_count'] ); ?></strong>
    2525    </dd>
    2626
    27     <dt><?php _e( 'Topics', 'bbpress' ); ?></dt>
     27    <dt><?php esc_html_e( 'Topics', 'bbpress' ); ?></dt>
    2828    <dd>
    2929        <strong><?php echo esc_html( $stats['topic_count'] ); ?></strong>
    3030    </dd>
    3131
    32     <dt><?php _e( 'Replies', 'bbpress' ); ?></dt>
     32    <dt><?php esc_html_e( 'Replies', 'bbpress' ); ?></dt>
    3333    <dd>
    3434        <strong><?php echo esc_html( $stats['reply_count'] ); ?></strong>
    3535    </dd>
    3636
    37     <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>
     37    <dt><?php esc_html_e( 'Topic Tags', 'bbpress' ); ?></dt>
    3838    <dd>
    3939        <strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong>
     
    4242    <?php if ( !empty( $stats['empty_topic_tag_count'] ) ) : ?>
    4343
    44         <dt><?php _e( 'Empty Topic Tags', 'bbpress' ); ?></dt>
     44        <dt><?php esc_html_e( 'Empty Topic Tags', 'bbpress' ); ?></dt>
    4545        <dd>
    4646            <strong><?php echo esc_html( $stats['empty_topic_tag_count'] ); ?></strong>
     
    5151    <?php if ( !empty( $stats['topic_count_hidden'] ) ) : ?>
    5252
    53         <dt><?php _e( 'Hidden Topics', 'bbpress' ); ?></dt>
     53        <dt><?php esc_html_e( 'Hidden Topics', 'bbpress' ); ?></dt>
    5454        <dd>
    5555            <strong>
     
    6262    <?php if ( !empty( $stats['reply_count_hidden'] ) ) : ?>
    6363
    64         <dt><?php _e( 'Hidden Replies', 'bbpress' ); ?></dt>
     64        <dt><?php esc_html_e( 'Hidden Replies', 'bbpress' ); ?></dt>
    6565        <dd>
    6666            <strong>
  • trunk/src/templates/default/bbpress/feedback-logged-in.php

    r5563 r5688  
    1212<div class="bbp-template-notice info">
    1313    <ul>
    14         <li><?php _e( 'You are already logged in.', 'bbpress' ); ?></li>
     14        <li><?php esc_html_e( 'You are already logged in.', 'bbpress' ); ?></li>
    1515    </ul>
    1616</div>
  • trunk/src/templates/default/bbpress/feedback-no-access.php

    r5563 r5688  
    1111
    1212<div id="forum-private" class="bbp-forum-content">
    13     <h1 class="entry-title"><?php _e( 'Private', 'bbpress' ); ?></h1>
     13    <h1 class="entry-title"><?php esc_html_e( 'Private', 'bbpress' ); ?></h1>
    1414    <div class="entry-content">
    1515        <div class="bbp-template-notice info">
    1616            <ul>
    17                 <li><?php _e( 'You do not have permission to view this forum.', 'bbpress' ); ?></li>
     17                <li><?php esc_html_e( 'You do not have permission to view this forum.', 'bbpress' ); ?></li>
    1818            </ul>
    1919        </div>
  • trunk/src/templates/default/bbpress/feedback-no-forums.php

    r5563 r5688  
    1212<div class="bbp-template-notice">
    1313    <ul>
    14         <li><?php _e( 'Oh bother! No forums were found here!', 'bbpress' ); ?></li>
     14        <li><?php esc_html_e( 'Oh bother! No forums were found here!', 'bbpress' ); ?></li>
    1515    </ul>
    1616</div>
  • trunk/src/templates/default/bbpress/feedback-no-replies.php

    r5563 r5688  
    1212<div class="bbp-template-notice">
    1313    <ul>
    14         <li><?php _e( 'Oh bother! No replies were found here!', 'bbpress' ); ?></li>
     14        <li><?php esc_html_e( 'Oh bother! No replies were found here!', 'bbpress' ); ?></li>
    1515    </ul>
    1616</div>
  • trunk/src/templates/default/bbpress/feedback-no-search.php

    r5563 r5688  
    1212<div class="bbp-template-notice">
    1313    <ul>
    14         <li><?php _e( 'Oh bother! No search results were found here!', 'bbpress' ); ?></li>
     14        <li><?php esc_html_e( 'Oh bother! No search results were found here!', 'bbpress' ); ?></li>
    1515    </ul>
    1616</div>
  • trunk/src/templates/default/bbpress/feedback-no-topics.php

    r5563 r5688  
    1212<div class="bbp-template-notice">
    1313    <ul>
    14         <li><?php _e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></li>
     14        <li><?php esc_html_e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></li>
    1515    </ul>
    1616</div>
  • trunk/src/templates/default/bbpress/form-anonymous.php

    r5561 r5688  
    1515
    1616    <fieldset class="bbp-form">
    17         <legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? _e( 'Author Information', 'bbpress' ) : _e( 'Your information:', 'bbpress' ); ?></legend>
     17        <legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? esc_html_e( 'Author Information', 'bbpress' ) : esc_html_e( 'Your information:', 'bbpress' ); ?></legend>
    1818
    1919        <?php do_action( 'bbp_theme_anonymous_form_extras_top' ); ?>
    2020
    2121        <p>
    22             <label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br />
     22            <label for="bbp_anonymous_author"><?php esc_html_e( 'Name (required):', 'bbpress' ); ?></label><br />
    2323            <input type="text" id="bbp_anonymous_author"  value="<?php bbp_author_display_name(); ?>" size="40" name="bbp_anonymous_name" />
    2424        </p>
    2525
    2626        <p>
    27             <label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
     27            <label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    2828            <input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" size="40" name="bbp_anonymous_email" />
    2929        </p>
    3030
    3131        <p>
    32             <label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br />
     32            <label for="bbp_anonymous_website"><?php esc_html_e( 'Website:', 'bbpress' ); ?></label><br />
    3333            <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" name="bbp_anonymous_website" />
    3434        </p>
  • trunk/src/templates/default/bbpress/form-forum.php

    r5563 r5688  
    3232
    3333                    <?php
    34                         if ( bbp_is_forum_edit() )
    35                             printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() );
    36                         else
    37                             bbp_is_single_forum() ? printf( __( 'Create New Forum in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Forum', 'bbpress' );
     34                        if ( bbp_is_forum_edit() ) :
     35                            printf( esc_html__( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() );
     36                        else :
     37                            bbp_is_single_forum()
     38                                ? printf( esc_html__( 'Create New Forum in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() )
     39                                : esc_html_e( 'Create New Forum', 'bbpress' );
     40                        endif;
    3841                    ?>
    3942
     
    4649                    <div class="bbp-template-notice">
    4750                        <ul>
    48                             <li><?php _e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></li>
     51                            <li><?php esc_html_e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></li>
    4952                        </ul>
    5053                    </div>
     
    5659                    <div class="bbp-template-notice">
    5760                        <ul>
    58                             <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
     61                            <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
    5962                        </ul>
    6063                    </div>
     
    6972
    7073                    <p>
    71                         <label for="bbp_forum_title"><?php printf( __( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
     74                        <label for="bbp_forum_title"><?php printf( esc_html__( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
    7275                        <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" />
    7376                    </p>
     
    8487
    8588                        <p class="form-allowed-tags">
    86                             <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     89                            <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
    8790                            <code><?php bbp_allowed_tags(); ?></code>
    8891                        </p>
     
    9396
    9497                    <p>
    95                         <label for="bbp_forum_type"><?php _e( 'Forum Type:', 'bbpress' ); ?></label><br />
     98                        <label for="bbp_forum_type"><?php esc_html_e( 'Forum Type:', 'bbpress' ); ?></label><br />
    9699                        <?php bbp_form_forum_type_dropdown(); ?>
    97100                    </p>
     
    102105
    103106                    <p>
    104                         <label for="bbp_forum_status"><?php _e( 'Status:', 'bbpress' ); ?></label><br />
     107                        <label for="bbp_forum_status"><?php esc_html_e( 'Status:', 'bbpress' ); ?></label><br />
    105108                        <?php bbp_form_forum_status_dropdown(); ?>
    106109                    </p>
     
    111114
    112115                    <p>
    113                         <label for="bbp_forum_visibility"><?php _e( 'Visibility:', 'bbpress' ); ?></label><br />
     116                        <label for="bbp_forum_visibility"><?php esc_html_e( 'Visibility:', 'bbpress' ); ?></label><br />
    114117                        <?php bbp_form_forum_visibility_dropdown(); ?>
    115118                    </p>
     
    120123
    121124                    <p>
    122                         <label for="bbp_forum_parent_id"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />
     125                        <label for="bbp_forum_parent_id"><?php esc_html_e( 'Parent Forum:', 'bbpress' ); ?></label><br />
    123126
    124127                        <?php
    125128                            bbp_dropdown( array(
    126129                                'select_id' => 'bbp_forum_parent_id',
    127                                 'show_none' => __( '(No Parent)', 'bbpress' ),
     130                                'show_none' => esc_html__( '(No Parent)', 'bbpress' ),
    128131                                'selected'  => bbp_get_form_forum_parent(),
    129132                                'exclude'   => bbp_get_forum_id()
     
    140143                        <?php do_action( 'bbp_theme_before_forum_form_submit_button' ); ?>
    141144
    142                         <button type="submit" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     145                        <button type="submit" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    143146
    144147                        <?php do_action( 'bbp_theme_after_forum_form_submit_button' ); ?>
     
    164167        <div class="bbp-template-notice">
    165168            <ul>
    166                 <li><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></li>
     169                <li><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></li>
    167170            </ul>
    168171        </div>
     
    174177        <div class="bbp-template-notice">
    175178            <ul>
    176                 <li><?php is_user_logged_in() ? _e( 'You cannot create new forums.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></li>
     179                <li><?php is_user_logged_in()
     180                    ? esc_html_e( 'You cannot create new forums.',               'bbpress' )
     181                    : esc_html_e( 'You must be logged in to create new forums.', 'bbpress' );
     182                ?></li>
    177183            </ul>
    178184        </div>
  • trunk/src/templates/default/bbpress/form-protected.php

    r4733 r5688  
    1212<div id="bbpress-forums">
    1313    <fieldset class="bbp-form" id="bbp-protected">
    14         <Legend><?php _e( 'Protected', 'bbpress' ); ?></legend>
     14        <Legend><?php esc_html_e( 'Protected', 'bbpress' ); ?></legend>
    1515
    1616        <?php echo get_the_password_form(); ?>
  • trunk/src/templates/default/bbpress/form-reply-move.php

    r5563 r5688  
    2222                <fieldset class="bbp-form">
    2323
    24                     <legend><?php printf( __( 'Move reply "%s"', 'bbpress' ), bbp_get_reply_title() ); ?></legend>
     24                    <legend><?php printf( esc_html__( 'Move reply "%s"', 'bbpress' ), bbp_get_reply_title() ); ?></legend>
    2525
    2626                    <div>
     
    2828                        <div class="bbp-template-notice info">
    2929                            <ul>
    30                                 <li><?php _e( 'You can either make this reply a new topic with a new title, or merge it into an existing topic.', 'bbpress' ); ?></li>
     30                                <li><?php esc_html_e( 'You can either make this reply a new topic with a new title, or merge it into an existing topic.', 'bbpress' ); ?></li>
    3131                            </ul>
    3232                        </div>
     
    3434                        <div class="bbp-template-notice">
    3535                            <ul>
    36                                 <li><?php _e( 'If you choose an existing topic, replies will be ordered by the time and date they were created.', 'bbpress' ); ?></li>
     36                                <li><?php esc_html_e( 'If you choose an existing topic, replies will be ordered by the time and date they were created.', 'bbpress' ); ?></li>
    3737                            </ul>
    3838                        </div>
    3939
    4040                        <fieldset class="bbp-form">
    41                             <legend><?php _e( 'Move Method', 'bbpress' ); ?></legend>
     41                            <legend><?php esc_html_e( 'Move Method', 'bbpress' ); ?></legend>
    4242
    4343                            <div>
    4444                                <input name="bbp_reply_move_option" id="bbp_reply_move_option_reply" type="radio" checked="checked" value="topic" />
    45                                 <label for="bbp_reply_move_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_reply_forum_id( bbp_get_reply_id() ) ) ); ?></label>
    46                                 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( __( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" size="35" name="bbp_reply_move_destination_title" />
     45                                <label for="bbp_reply_move_option_reply"><?php printf( esc_html__( 'New topic in %s titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_reply_forum_id( bbp_get_reply_id() ) ) ); ?></label>
     46                                <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( esc_html__( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" size="35" name="bbp_reply_move_destination_title" />
    4747                            </div>
    4848
     
    5151                                <div>
    5252                                    <input name="bbp_reply_move_option" id="bbp_reply_move_option_existing" type="radio" value="existing" />
    53                                     <label for="bbp_reply_move_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
     53                                    <label for="bbp_reply_move_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
    5454
    5555                                    <?php
     
    7171                        <div class="bbp-template-notice error" role="alert" tabindex="-1">
    7272                            <ul>
    73                                 <li><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></li>
     73                                <li><?php esc_html_e( 'This process cannot be undone.', 'bbpress' ); ?></li>
    7474                            </ul>
    7575                        </div>
    7676
    7777                        <div class="bbp-submit-wrapper">
    78                             <button type="submit" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     78                            <button type="submit" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    7979                        </div>
    8080                    </div>
     
    8989
    9090        <div id="no-reply-<?php bbp_reply_id(); ?>" class="bbp-no-reply">
    91             <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this reply!', 'bbpress' ) : _e( 'You cannot edit this reply.', 'bbpress' ); ?></div>
     91            <div class="entry-content"><?php is_user_logged_in()
     92                ? esc_html_e( 'You do not have the permissions to edit this reply!', 'bbpress' )
     93                : esc_html_e( 'You cannot edit this reply.',                         'bbpress' );
     94            ?></div>
    9295        </div>
    9396
  • trunk/src/templates/default/bbpress/form-reply.php

    r5563 r5688  
    3535                    <div class="bbp-template-notice">
    3636                        <ul>
    37                             <li><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>
     37                            <li><?php esc_html_e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>
    3838                        </ul>
    3939                    </div>
     
    4545                    <div class="bbp-template-notice">
    4646                        <ul>
    47                             <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
     47                            <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
    4848                        </ul>
    4949                    </div>
     
    6666
    6767                        <p class="form-allowed-tags">
    68                             <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     68                            <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
    6969                            <code><?php bbp_allowed_tags(); ?></code>
    7070                        </p>
     
    7777
    7878                        <p>
    79                             <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br />
     79                            <label for="bbp_topic_tags"><?php esc_html_e( 'Tags:', 'bbpress' ); ?></label><br />
    8080                            <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    8181                        </p>
     
    9595                            <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?>
    9696
    97                                 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     97                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    9898
    9999                            <?php else : ?>
    100100
    101                                 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     101                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    102102
    103103                            <?php endif; ?>
     
    116116
    117117                            <p class="form-reply-to">
    118                                 <label for="bbp_reply_to"><?php _e( 'Reply To:', 'bbpress' ); ?></label><br />
     118                                <label for="bbp_reply_to"><?php esc_html_e( 'Reply To:', 'bbpress' ); ?></label><br />
    119119                                <?php bbp_reply_to_dropdown(); ?>
    120120                            </p>
     
    125125
    126126                            <p>
    127                                 <label for="bbp_reply_status"><?php _e( 'Reply Status:', 'bbpress' ); ?></label><br />
     127                                <label for="bbp_reply_status"><?php esc_html_e( 'Reply Status:', 'bbpress' ); ?></label><br />
    128128                                <?php bbp_form_reply_status_dropdown(); ?>
    129129                            </p>
     
    140140                                <legend>
    141141                                    <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> />
    142                                     <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
     142                                    <label for="bbp_log_reply_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    143143                                </legend>
    144144
    145145                                <div>
    146                                     <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
     146                                    <label for="bbp_reply_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
    147147                                    <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
    148148                                </div>
     
    163163                        <?php bbp_cancel_reply_to_link(); ?>
    164164
    165                         <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     165                        <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    166166
    167167                        <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?>
     
    187187        <div class="bbp-template-notice">
    188188            <ul>
    189                 <li><?php printf( __( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></li>
     189                <li><?php printf( esc_html__( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></li>
    190190            </ul>
    191191        </div>
     
    197197        <div class="bbp-template-notice">
    198198            <ul>
    199                 <li><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li>
     199                <li><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li>
    200200            </ul>
    201201        </div>
     
    207207        <div class="bbp-template-notice">
    208208            <ul>
    209                 <li><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></li>
     209                <li><?php is_user_logged_in()
     210                    ? esc_html_e( 'You cannot reply to this topic.',               'bbpress' )
     211                    : esc_html_e( 'You must be logged in to reply to this topic.', 'bbpress' );
     212                ?></li>
    210213            </ul>
    211214        </div>
  • trunk/src/templates/default/bbpress/form-search.php

    r5561 r5688  
    1212<form role="search" method="get" id="bbp-search-form" action="<?php bbp_search_url(); ?>">
    1313    <div>
    14         <label class="screen-reader-text hidden" for="bbp_search"><?php _e( 'Search for:', 'bbpress' ); ?></label>
     14        <label class="screen-reader-text hidden" for="bbp_search"><?php esc_html_e( 'Search for:', 'bbpress' ); ?></label>
    1515        <input type="hidden" name="action" value="bbp-search-request" />
    1616        <input type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />
  • trunk/src/templates/default/bbpress/form-topic-merge.php

    r5563 r5688  
    2222                <fieldset class="bbp-form">
    2323
    24                     <legend><?php printf( __( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
     24                    <legend><?php printf( esc_html__( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
    2525
    2626                    <div>
     
    2828                        <div class="bbp-template-notice info">
    2929                            <ul>
    30                                 <li><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></li>
    31                                 <li><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.',                                  'bbpress' ); ?></li>
     30                                <li><?php esc_html_e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></li>
     31                                <li><?php esc_html_e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.',                                  'bbpress' ); ?></li>
    3232                            </ul>
    3333                        </div>
     
    3535                        <div class="bbp-template-notice">
    3636                            <ul>
    37                                 <li><?php _e( 'Replies to both topics are merged chronologically, ordered by the time and date they were published. Topics may be updated to a 1 second difference to maintain chronological order based on the merge direction.', 'bbpress' ); ?></li>
     37                                <li><?php esc_html_e( 'Replies to both topics are merged chronologically, ordered by the time and date they were published. Topics may be updated to a 1 second difference to maintain chronological order based on the merge direction.', 'bbpress' ); ?></li>
    3838                            </ul>
    3939                        </div>
    4040
    4141                        <fieldset class="bbp-form">
    42                             <legend><?php _e( 'Destination', 'bbpress' ); ?></legend>
     42                            <legend><?php esc_html_e( 'Destination', 'bbpress' ); ?></legend>
    4343                            <div>
    4444                                <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
    4545
    46                                     <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'bbpress' ); ?></label>
     46                                    <label for="bbp_destination_topic"><?php esc_html_e( 'Merge with this topic:', 'bbpress' ); ?></label>
    4747
    4848                                    <?php
     
    5959                                <?php else : ?>
    6060
    61                                     <label><?php _e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>
     61                                    <label><?php esc_html_e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>
    6262
    6363                                <?php endif; ?>
     
    6767
    6868                        <fieldset class="bbp-form">
    69                             <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
     69                            <legend><?php esc_html_e( 'Topic Extras', 'bbpress' ); ?></legend>
    7070
    7171                            <div>
     
    7474
    7575                                    <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" />
    76                                     <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />
     76                                    <label for="bbp_topic_subscribers"><?php esc_html_e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />
    7777
    7878                                <?php endif; ?>
    7979
    8080                                <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" />
    81                                 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />
     81                                <label for="bbp_topic_favoriters"><?php esc_html_e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />
    8282
    8383                                <?php if ( bbp_allow_topic_tags() ) : ?>
    8484
    8585                                    <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" />
    86                                     <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br />
     86                                    <label for="bbp_topic_tags"><?php esc_html_e( 'Merge topic tags', 'bbpress' ); ?></label><br />
    8787
    8888                                <?php endif; ?>
     
    9393                        <div class="bbp-template-notice error">
    9494                            <ul>
    95                                 <li><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></li>
     95                                <li><?php esc_html_e( 'This process cannot be undone.', 'bbpress' ); ?></li>
    9696                            </ul>
    9797                        </div>
    9898
    9999                        <div class="bbp-submit-wrapper">
    100                             <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     100                            <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    101101                        </div>
    102102                    </div>
     
    111111
    112112        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    113             <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
     113            <div class="entry-content"><?php is_user_logged_in()
     114                ? esc_html_e( 'You do not have the permissions to edit this topic!', 'bbpress' )
     115                : esc_html_e( 'You cannot edit this topic.',                         'bbpress' );
     116            ?></div>
    114117        </div>
    115118
  • trunk/src/templates/default/bbpress/form-topic-split.php

    r5563 r5688  
    2222                <fieldset class="bbp-form">
    2323
    24                     <legend><?php printf( __( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
     24                    <legend><?php printf( esc_html__( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
    2525
    2626                    <div>
     
    2828                        <div class="bbp-template-notice info">
    2929                            <ul>
    30                                 <li><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></li>
     30                                <li><?php esc_html_e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></li>
    3131                            </ul>
    3232                        </div>
     
    3434                        <div class="bbp-template-notice">
    3535                            <ul>
    36                                 <li><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></li>
     36                                <li><?php esc_html_e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></li>
    3737                            </ul>
    3838                        </div>
    3939
    4040                        <fieldset class="bbp-form">
    41                             <legend><?php _e( 'Split Method', 'bbpress' ); ?></legend>
     41                            <legend><?php esc_html_e( 'Split Method', 'bbpress' ); ?></legend>
    4242
    4343                            <div>
    4444                                <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" />
    45                                 <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>
    46                                 <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" size="35" name="bbp_topic_split_destination_title" />
     45                                <label for="bbp_topic_split_option_reply"><?php printf( esc_html__( 'New topic in %s titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>
     46                                <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( esc_html__( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" size="35" name="bbp_topic_split_destination_title" />
    4747                            </div>
    4848
     
    5151                                <div>
    5252                                    <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" />
    53                                     <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
     53                                    <label for="bbp_topic_split_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
    5454
    5555                                    <?php
     
    7171
    7272                        <fieldset class="bbp-form">
    73                             <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
     73                            <legend><?php esc_html_e( 'Topic Extras', 'bbpress' ); ?></legend>
    7474
    7575                            <div>
     
    7878
    7979                                    <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" />
    80                                     <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />
     80                                    <label for="bbp_topic_subscribers"><?php esc_html_e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />
    8181
    8282                                <?php endif; ?>
    8383
    8484                                <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" />
    85                                 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />
     85                                <label for="bbp_topic_favoriters"><?php esc_html_e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />
    8686
    8787                                <?php if ( bbp_allow_topic_tags() ) : ?>
    8888
    8989                                    <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" />
    90                                     <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />
     90                                    <label for="bbp_topic_tags"><?php esc_html_e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />
    9191
    9292                                <?php endif; ?>
     
    9797                        <div class="bbp-template-notice error" role="alert" tabindex="-1">
    9898                            <ul>
    99                                 <li><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></li>
     99                                <li><?php esc_html_e( 'This process cannot be undone.', 'bbpress' ); ?></li>
    100100                            </ul>
    101101                        </div>
    102102
    103103                        <div class="bbp-submit-wrapper">
    104                             <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     104                            <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    105105                        </div>
    106106                    </div>
     
    115115
    116116        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    117             <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
     117            <div class="entry-content"><?php is_user_logged_in()
     118                ? esc_html_e( 'You do not have the permissions to edit this topic!', 'bbpress' )
     119                : esc_html_e( 'You cannot edit this topic.',                         'bbpress' );
     120            ?></div>
    118121        </div>
    119122
  • trunk/src/templates/default/bbpress/form-topic-tag.php

    r5563 r5688  
    1616        <fieldset class="bbp-form" id="bbp-edit-topic-tag">
    1717
    18             <legend><?php printf( __( 'Manage Tag: "%s"', 'bbpress' ), bbp_get_topic_tag_name() ); ?></legend>
     18            <legend><?php printf( esc_html__( 'Manage Tag: "%s"', 'bbpress' ), bbp_get_topic_tag_name() ); ?></legend>
    1919
    2020            <fieldset class="bbp-form" id="tag-rename">
    2121
    22                 <legend><?php _e( 'Rename', 'bbpress' ); ?></legend>
     22                <legend><?php esc_html_e( 'Rename', 'bbpress' ); ?></legend>
    2323
    2424                <div class="bbp-template-notice info">
    2525                    <ul>
    26                         <li><?php _e( 'Leave the slug empty to have one automatically generated.', 'bbpress' ); ?></li>
     26                        <li><?php esc_html_e( 'Leave the slug empty to have one automatically generated.', 'bbpress' ); ?></li>
    2727                    </ul>
    2828                </div>
     
    3030                <div class="bbp-template-notice">
    3131                    <ul>
    32                         <li><?php _e( 'Changing the slug affects its permalink. Any links to the old slug will stop working.', 'bbpress' ); ?></li>
     32                        <li><?php esc_html_e( 'Changing the slug affects its permalink. Any links to the old slug will stop working.', 'bbpress' ); ?></li>
    3333                    </ul>
    3434                </div>
     
    3737
    3838                    <div>
    39                         <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label>
     39                        <label for="tag-name"><?php esc_html_e( 'Name:', 'bbpress' ); ?></label>
    4040                        <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" />
    4141                    </div>
    4242
    4343                    <div>
    44                         <label for="tag-slug"><?php _e( 'Slug:', 'bbpress' ); ?></label>
     44                        <label for="tag-slug"><?php esc_html_e( 'Slug:', 'bbpress' ); ?></label>
    4545                        <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" />
    4646                    </div>
    4747
    4848                    <div>
    49                         <label for="tag-description"><?php _e( 'Description:', 'bbpress' ); ?></label>
     49                        <label for="tag-description"><?php esc_html_e( 'Description:', 'bbpress' ); ?></label>
    5050                        <input type="text" id="tag-description" name="tag-description" size="20" value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" />
    5151                    </div>
     
    6666            <fieldset class="bbp-form" id="tag-merge">
    6767
    68                 <legend><?php _e( 'Merge', 'bbpress' ); ?></legend>
     68                <legend><?php esc_html_e( 'Merge', 'bbpress' ); ?></legend>
    6969
    7070                <div class="bbp-template-notice">
    7171                    <ul>
    72                         <li><?php _e( 'Merging tags together cannot be undone.', 'bbpress' ); ?></li>
     72                        <li><?php esc_html_e( 'Merging tags together cannot be undone.', 'bbpress' ); ?></li>
    7373                    </ul>
    7474                </div>
     
    7777
    7878                    <div>
    79                         <label for="tag-existing-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label>
     79                        <label for="tag-existing-name"><?php esc_html_e( 'Existing tag:', 'bbpress' ); ?></label>
    8080                        <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" maxlength="40" />
    8181                    </div>
    8282
    8383                    <div class="bbp-submit-wrapper">
    84                         <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button>
     84                        <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( esc_html__( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button>
    8585
    8686                        <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" />
     
    9797                <fieldset class="bbp-form" id="delete-tag">
    9898
    99                     <legend><?php _e( 'Delete', 'bbpress' ); ?></legend>
     99                    <legend><?php esc_html_e( 'Delete', 'bbpress' ); ?></legend>
    100100
    101101                    <div class="bbp-template-notice info">
    102102                        <ul>
    103                             <li><?php _e( 'This does not delete your topics. Only the tag itself is deleted.', 'bbpress' ); ?></li>
     103                            <li><?php esc_html_e( 'This does not delete your topics. Only the tag itself is deleted.', 'bbpress' ); ?></li>
    104104                        </ul>
    105105                    </div>
    106106                    <div class="bbp-template-notice">
    107107                        <ul>
    108                             <li><?php _e( 'Deleting a tag cannot be undone.', 'bbpress' ); ?></li>
    109                             <li><?php _e( 'Any links to this tag will no longer function.', 'bbpress' ); ?></li>
     108                            <li><?php esc_html_e( 'Deleting a tag cannot be undone.', 'bbpress' ); ?></li>
     109                            <li><?php esc_html_e( 'Any links to this tag will no longer function.', 'bbpress' ); ?></li>
    110110                        </ul>
    111111                    </div>
     
    114114
    115115                        <div class="bbp-submit-wrapper">
    116                             <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button>
     116                            <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( esc_html__( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button>
    117117
    118118                            <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" />
  • trunk/src/templates/default/bbpress/form-topic.php

    r5563 r5688  
    3939                    <?php
    4040                        if ( bbp_is_topic_edit() ) :
    41                             printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
     41                            printf( esc_html__( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
    4242                        else :
    4343                            ( bbp_is_single_forum() && bbp_get_forum_title() )
    44                                 ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() )
    45                                 : _e( 'Create New Topic', 'bbpress' );
     44                                ? printf( esc_html__( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() )
     45                                : esc_html_e( 'Create New Topic', 'bbpress' );
    4646                        endif;
    4747                    ?>
     
    5555                    <div class="bbp-template-notice">
    5656                        <ul>
    57                             <li><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>
     57                            <li><?php esc_html_e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>
    5858                        </ul>
    5959                    </div>
     
    6565                    <div class="bbp-template-notice">
    6666                        <ul>
    67                             <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
     67                            <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
    6868                        </ul>
    6969                    </div>
     
    8080
    8181                    <p>
    82                         <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
     82                        <label for="bbp_topic_title"><?php printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
    8383                        <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
    8484                    </p>
     
    9595
    9696                        <p class="form-allowed-tags">
    97                             <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     97                            <label><?php printf( esc_html__( 'You may use these %s tags and attributes:', 'bbpress' ), '<abbr title="HyperText Markup Language">HTML</abbr>' ); ?></label><br />
    9898                            <code><?php bbp_allowed_tags(); ?></code>
    9999                        </p>
     
    106106
    107107                        <p>
    108                             <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
     108                            <label for="bbp_topic_tags"><?php esc_html_e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    109109                            <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    110110                        </p>
     
    119119
    120120                        <p>
    121                             <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
     121                            <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></label><br />
    122122                            <?php
    123123                                bbp_dropdown( array(
    124                                     'show_none' => __( '(No Forum)', 'bbpress' ),
     124                                    'show_none' => esc_html__( '(No Forum)', 'bbpress' ),
    125125                                    'selected'  => bbp_get_form_topic_forum()
    126126                                ) );
     
    138138                        <p>
    139139
    140                             <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
     140                            <label for="bbp_stick_topic"><?php esc_html_e( 'Topic Type:', 'bbpress' ); ?></label><br />
    141141
    142142                            <?php bbp_form_topic_type_dropdown(); ?>
     
    150150                        <p>
    151151
    152                             <label for="bbp_topic_status"><?php _e( 'Topic Status:', 'bbpress' ); ?></label><br />
     152                            <label for="bbp_topic_status"><?php esc_html_e( 'Topic Status:', 'bbpress' ); ?></label><br />
    153153
    154154                            <?php bbp_form_topic_status_dropdown(); ?>
     
    169169                            <?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?>
    170170
    171                                 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     171                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    172172
    173173                            <?php else : ?>
    174174
    175                                 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     175                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    176176
    177177                            <?php endif; ?>
     
    189189                            <legend>
    190190                                <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> />
    191                                 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
     191                                <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    192192                            </legend>
    193193
    194194                            <div>
    195                                 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
     195                                <label for="bbp_topic_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
    196196                                <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
    197197                            </div>
     
    208208                        <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
    209209
    210                         <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     210                        <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    211211
    212212                        <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
     
    232232        <div class="bbp-template-notice">
    233233            <ul>
    234                 <li><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></li>
     234                <li><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></li>
    235235            </ul>
    236236        </div>
     
    242242        <div class="bbp-template-notice">
    243243            <ul>
    244                 <li><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></li>
     244                <li><?php is_user_logged_in()
     245                    ? esc_html_e( 'You cannot create new topics.',               'bbpress' )
     246                    : esc_html_e( 'You must be logged in to create new topics.', 'bbpress' );
     247                ?></li>
    245248            </ul>
    246249        </div>
  • trunk/src/templates/default/bbpress/form-user-edit.php

    r5660 r5688  
    1212<form id="bbp-your-profile" action="<?php bbp_user_profile_edit_url( bbp_get_displayed_user_id() ); ?>" method="post" enctype="multipart/form-data">
    1313
    14     <h2 class="entry-title"><?php _e( 'Name', 'bbpress' ) ?></h2>
     14    <h2 class="entry-title"><?php esc_html_e( 'Name', 'bbpress' ) ?></h2>
    1515
    1616    <?php do_action( 'bbp_user_edit_before' ); ?>
    1717
    1818    <fieldset class="bbp-form">
    19         <legend><?php _e( 'Name', 'bbpress' ) ?></legend>
     19        <legend><?php esc_html_e( 'Name', 'bbpress' ) ?></legend>
    2020
    2121        <?php do_action( 'bbp_user_edit_before_name' ); ?>
    2222
    2323        <div>
    24             <label for="first_name"><?php _e( 'First Name', 'bbpress' ) ?></label>
     24            <label for="first_name"><?php esc_html_e( 'First Name', 'bbpress' ) ?></label>
    2525            <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" />
    2626        </div>
    2727
    2828        <div>
    29             <label for="last_name"><?php _e( 'Last Name', 'bbpress' ) ?></label>
     29            <label for="last_name"><?php esc_html_e( 'Last Name', 'bbpress' ) ?></label>
    3030            <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" />
    3131        </div>
    3232
    3333        <div>
    34             <label for="nickname"><?php _e( 'Nickname', 'bbpress' ); ?></label>
     34            <label for="nickname"><?php esc_html_e( 'Nickname', 'bbpress' ); ?></label>
    3535            <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" />
    3636        </div>
    3737
    3838        <div>
    39             <label for="display_name"><?php _e( 'Display Name', 'bbpress' ) ?></label>
     39            <label for="display_name"><?php esc_html_e( 'Display Name', 'bbpress' ) ?></label>
    4040
    4141            <?php bbp_edit_user_display_name(); ?>
     
    4747    </fieldset>
    4848
    49     <h2 class="entry-title"><?php _e( 'Contact Info', 'bbpress' ) ?></h2>
     49    <h2 class="entry-title"><?php esc_html_e( 'Contact Info', 'bbpress' ) ?></h2>
    5050
    5151    <fieldset class="bbp-form">
    52         <legend><?php _e( 'Contact Info', 'bbpress' ) ?></legend>
     52        <legend><?php esc_html_e( 'Contact Info', 'bbpress' ) ?></legend>
    5353
    5454        <?php do_action( 'bbp_user_edit_before_contact' ); ?>
    5555
    5656        <div>
    57             <label for="url"><?php _e( 'Website', 'bbpress' ) ?></label>
     57            <label for="url"><?php esc_html_e( 'Website', 'bbpress' ) ?></label>
    5858            <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" />
    5959        </div>
     
    7272    </fieldset>
    7373
    74     <h2 class="entry-title"><?php bbp_is_user_home_edit() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></h2>
     74    <h2 class="entry-title"><?php bbp_is_user_home_edit()
     75        ? esc_html_e( 'About Yourself', 'bbpress' )
     76        : esc_html_e( 'About the user', 'bbpress' );
     77    ?></h2>
    7578
    7679    <fieldset class="bbp-form">
    77         <legend><?php bbp_is_user_home_edit() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></legend>
     80        <legend><?php bbp_is_user_home_edit()
     81            ? esc_html_e( 'About Yourself', 'bbpress' )
     82            : esc_html_e( 'About the user', 'bbpress' );
     83        ?></legend>
    7884
    7985        <?php do_action( 'bbp_user_edit_before_about' ); ?>
    8086
    8187        <div>
    82             <label for="description"><?php _e( 'Biographical Info', 'bbpress' ); ?></label>
     88            <label for="description"><?php esc_html_e( 'Biographical Info', 'bbpress' ); ?></label>
    8389            <textarea name="description" id="description" rows="5" cols="30"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea>
    8490        </div>
     
    8894    </fieldset>
    8995
    90     <h2 class="entry-title"><?php _e( 'Account', 'bbpress' ) ?></h2>
     96    <h2 class="entry-title"><?php esc_html_e( 'Account', 'bbpress' ) ?></h2>
    9197
    9298    <fieldset class="bbp-form">
    93         <legend><?php _e( 'Account', 'bbpress' ) ?></legend>
     99        <legend><?php esc_html_e( 'Account', 'bbpress' ) ?></legend>
    94100
    95101        <?php do_action( 'bbp_user_edit_before_account' ); ?>
    96102
    97103        <div>
    98             <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?></label>
     104            <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?></label>
    99105            <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" />
    100106        </div>
    101107
    102108        <div>
    103             <label for="email"><?php _e( 'Email', 'bbpress' ); ?></label>
     109            <label for="email"><?php esc_html_e( 'Email', 'bbpress' ); ?></label>
    104110            <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" />
    105111        </div>
    106112
    107113        <div id="password">
    108             <label for="pass1"><?php _e( 'New Password', 'bbpress' ); ?></label>
     114            <label for="pass1"><?php esc_html_e( 'New Password', 'bbpress' ); ?></label>
    109115            <fieldset class="bbp-form password">
    110116                <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" />
    111                 <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span>
     117                <span class="description"><?php esc_html_e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span>
    112118
    113119                <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" />
    114                 <span class="description"><?php _e( 'Type your new password again.', 'bbpress' ); ?></span><br />
     120                <span class="description"><?php esc_html_e( 'Type your new password again.', 'bbpress' ); ?></span><br />
    115121
    116122                <div id="pass-strength-result"></div>
    117                 <span class="description indicator-hint"><?php _e( 'Your password should be at least ten characters long. Use upper and lower case letters, numbers, and symbols to make it even stronger.', 'bbpress' ); ?></span>
     123                <span class="description indicator-hint"><?php esc_html_e( 'Your password should be at least ten characters long. Use upper and lower case letters, numbers, and symbols to make it even stronger.', 'bbpress' ); ?></span>
    118124            </fieldset>
    119125        </div>
     
    125131    <?php if ( current_user_can( 'edit_users' ) && ! bbp_is_user_home_edit() ) : ?>
    126132
    127         <h2 class="entry-title"><?php _e( 'User Role', 'bbpress' ) ?></h2>
     133        <h2 class="entry-title"><?php esc_html_e( 'User Role', 'bbpress' ) ?></h2>
    128134
    129135        <fieldset class="bbp-form">
    130             <legend><?php _e( 'User Role', 'bbpress' ); ?></legend>
     136            <legend><?php esc_html_e( 'User Role', 'bbpress' ); ?></legend>
    131137
    132138            <?php do_action( 'bbp_user_edit_before_role' ); ?>
     
    135141
    136142                <div>
    137                     <label for="super_admin"><?php _e( 'Network Role', 'bbpress' ); ?></label>
     143                    <label for="super_admin"><?php esc_html_e( 'Network Role', 'bbpress' ); ?></label>
    138144                    <label>
    139145                        <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> />
    140                         <?php _e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?>
     146                        <?php esc_html_e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?>
    141147                    </label>
    142148                </div>
     
    155161
    156162    <fieldset class="submit">
    157         <legend><?php _e( 'Save Changes', 'bbpress' ); ?></legend>
     163        <legend><?php esc_html_e( 'Save Changes', 'bbpress' ); ?></legend>
    158164        <div>
    159165
    160166            <?php bbp_edit_user_form_fields(); ?>
    161167
    162             <button type="submit" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>
     168            <button type="submit" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit()
     169                ? esc_html_e( 'Update Profile', 'bbpress' )
     170                : esc_html_e( 'Update User',    'bbpress' );
     171            ?></button>
    163172        </div>
    164173    </fieldset>
  • trunk/src/templates/default/bbpress/form-user-login.php

    r5561 r5688  
    1212<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    1313    <fieldset class="bbp-form">
    14         <legend><?php _e( 'Log In', 'bbpress' ); ?></legend>
     14        <legend><?php esc_html_e( 'Log In', 'bbpress' ); ?></legend>
    1515
    1616        <div class="bbp-username">
    17             <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
     17            <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label>
    1818            <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" />
    1919        </div>
    2020
    2121        <div class="bbp-password">
    22             <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label>
     22            <label for="user_pass"><?php esc_html_e( 'Password', 'bbpress' ); ?>: </label>
    2323            <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" />
    2424        </div>
     
    2626        <div class="bbp-remember-me">
    2727            <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" />
    28             <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>
     28            <label for="rememberme"><?php esc_html_e( 'Keep me signed in', 'bbpress' ); ?></label>
    2929        </div>
    3030
     
    3333        <div class="bbp-submit-wrapper">
    3434
    35             <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>
     35            <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Log In', 'bbpress' ); ?></button>
    3636
    3737            <?php bbp_user_login_fields(); ?>
  • trunk/src/templates/default/bbpress/form-user-lost-pass.php

    r5561 r5688  
    1212<form method="post" action="<?php bbp_wp_login_action( array( 'action' => 'lostpassword', 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    1313    <fieldset class="bbp-form">
    14         <legend><?php _e( 'Lost Password', 'bbpress' ); ?></legend>
     14        <legend><?php esc_html_e( 'Lost Password', 'bbpress' ); ?></legend>
    1515
    1616        <div class="bbp-username">
    1717            <p>
    18                 <label for="user_login" class="hide"><?php _e( 'Username or Email', 'bbpress' ); ?>: </label>
     18                <label for="user_login" class="hide"><?php esc_html_e( 'Username or Email', 'bbpress' ); ?>: </label>
    1919                <input type="text" name="user_login" value="" size="20" id="user_login" />
    2020            </p>
     
    2525        <div class="bbp-submit-wrapper">
    2626
    27             <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Reset My Password', 'bbpress' ); ?></button>
     27            <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Reset My Password', 'bbpress' ); ?></button>
    2828
    2929            <?php bbp_user_lost_pass_fields(); ?>
  • trunk/src/templates/default/bbpress/form-user-register.php

    r5563 r5688  
    1212<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
    1313    <fieldset class="bbp-form">
    14         <legend><?php _e( 'Create an Account', 'bbpress' ); ?></legend>
     14        <legend><?php esc_html_e( 'Create an Account', 'bbpress' ); ?></legend>
    1515
    1616        <?php do_action( 'bbp_template_before_register_fields' ); ?>
     
    1818        <div class="bbp-template-notice">
    1919            <ul>
    20                 <li><?php _e( 'Your username must be unique, and cannot be changed later.',                        'bbpress' ); ?></li>
    21                 <li><?php _e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ); ?></li>
     20                <li><?php esc_html_e( 'Your username must be unique, and cannot be changed later.',                        'bbpress' ); ?></li>
     21                <li><?php esc_html_e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ); ?></li>
    2222            </ul>
    2323        </div>
    2424
    2525        <div class="bbp-username">
    26             <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
     26            <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label>
    2727            <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" />
    2828        </div>
    2929
    3030        <div class="bbp-email">
    31             <label for="user_email"><?php _e( 'Email', 'bbpress' ); ?>: </label>
     31            <label for="user_email"><?php esc_html_e( 'Email', 'bbpress' ); ?>: </label>
    3232            <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" />
    3333        </div>
     
    3737        <div class="bbp-submit-wrapper">
    3838
    39             <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>
     39            <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Register', 'bbpress' ); ?></button>
    4040
    4141            <?php bbp_user_register_fields(); ?>
  • trunk/src/templates/default/bbpress/form-user-roles.php

    r4800 r5688  
    1111
    1212<div>
    13     <label for="role"><?php _e( 'Blog Role', 'bbpress' ) ?></label>
     13    <label for="role"><?php esc_html_e( 'Blog Role', 'bbpress' ) ?></label>
    1414
    1515    <?php bbp_edit_user_blog_role(); ?>
     
    1818
    1919<div>
    20     <label for="forum-role"><?php _e( 'Forum Role', 'bbpress' ) ?></label>
     20    <label for="forum-role"><?php esc_html_e( 'Forum Role', 'bbpress' ) ?></label>
    2121
    2222    <?php bbp_edit_user_forums_role(); ?>
  • trunk/src/templates/default/bbpress/loop-forums.php

    r4733 r5688  
    1717
    1818        <ul class="forum-titles">
    19             <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li>
    20             <li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li>
    21             <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
    22             <li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
     19            <li class="bbp-forum-info"><?php esc_html_e( 'Forum', 'bbpress' ); ?></li>
     20            <li class="bbp-forum-topic-count"><?php esc_html_e( 'Topics', 'bbpress' ); ?></li>
     21            <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic()
     22                ? esc_html_e( 'Replies', 'bbpress' )
     23                : esc_html_e( 'Posts',   'bbpress' );
     24            ?></li>
     25            <li class="bbp-forum-freshness"><?php esc_html_e( 'Freshness', 'bbpress' ); ?></li>
    2326        </ul>
    2427
  • trunk/src/templates/default/bbpress/loop-replies.php

    r5403 r5688  
    1616    <li class="bbp-header">
    1717
    18         <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
     18        <div class="bbp-reply-author"><?php esc_html_e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
    1919
    2020        <div class="bbp-reply-content">
    2121
    22             <?php if ( !bbp_show_lead_topic() ) : ?>
     22            <?php if ( ! bbp_show_lead_topic() ) : ?>
    2323
    24                 <?php _e( 'Posts', 'bbpress' ); ?>
     24                <?php esc_html_e( 'Posts', 'bbpress' ); ?>
    2525
    2626            <?php else : ?>
    2727
    28                 <?php _e( 'Replies', 'bbpress' ); ?>
     28                <?php esc_html_e( 'Replies', 'bbpress' ); ?>
    2929
    3030            <?php endif; ?>
     
    5454    <li class="bbp-footer">
    5555
    56         <div class="bbp-reply-author"><?php  _e( 'Author',  'bbpress' ); ?></div>
     56        <div class="bbp-reply-author"><?php esc_html_e( 'Author',  'bbpress' ); ?></div>
    5757
    5858        <div class="bbp-reply-content">
    5959
    60             <?php if ( !bbp_show_lead_topic() ) : ?>
     60            <?php if ( ! bbp_show_lead_topic() ) : ?>
    6161
    62                 <?php _e( 'Posts', 'bbpress' ); ?>
     62                <?php esc_html_e( 'Posts', 'bbpress' ); ?>
    6363
    6464            <?php else : ?>
    6565
    66                 <?php _e( 'Replies', 'bbpress' ); ?>
     66                <?php esc_html_e( 'Replies', 'bbpress' ); ?>
    6767
    6868            <?php endif; ?>
  • trunk/src/templates/default/bbpress/loop-search-forum.php

    r5075 r5688  
    1414    <div class="bbp-meta">
    1515
    16         <span class="bbp-forum-post-date"><?php printf( __( 'Last updated %s', 'bbpress' ), bbp_get_forum_last_active_time() ); ?></span>
     16        <span class="bbp-forum-post-date"><?php printf( esc_html__( 'Last updated %s', 'bbpress' ), bbp_get_forum_last_active_time() ); ?></span>
    1717
    1818        <a href="<?php bbp_forum_permalink(); ?>" class="bbp-forum-permalink">#<?php bbp_forum_id(); ?></a>
     
    2424        <?php do_action( 'bbp_theme_before_forum_title' ); ?>
    2525
    26         <h3><?php _e( 'Forum: ', 'bbpress' ); ?><a href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a></h3>
     26        <h3><?php esc_html_e( 'Forum: ', 'bbpress' ); ?><a href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a></h3>
    2727
    2828        <?php do_action( 'bbp_theme_after_forum_title' ); ?>
  • trunk/src/templates/default/bbpress/loop-search-reply.php

    r5031 r5688  
    2222    <div class="bbp-reply-title">
    2323
    24         <h3><?php _e( 'In reply to: ', 'bbpress' ); ?>
     24        <h3><?php esc_html_e( 'In reply to: ', 'bbpress' ); ?>
    2525        <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a></h3>
    2626
  • trunk/src/templates/default/bbpress/loop-search-topic.php

    r5031 r5688  
    2424        <?php do_action( 'bbp_theme_before_topic_title' ); ?>
    2525
    26         <h3><?php _e( 'Topic: ', 'bbpress' ); ?>
     26        <h3><?php esc_html_e( 'Topic: ', 'bbpress' ); ?>
    2727        <a href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a></h3>
    2828
     
    3131            <?php if ( function_exists( 'bbp_is_forum_group_forum' ) && bbp_is_forum_group_forum( bbp_get_topic_forum_id() ) ) : ?>
    3232
    33                 <?php _e( 'in group forum ', 'bbpress' ); ?>
     33                <?php esc_html_e( 'in group forum ', 'bbpress' ); ?>
    3434
    3535            <?php else : ?>
    3636
    37                 <?php _e( 'in forum ', 'bbpress' ); ?>
     37                <?php esc_html_e( 'in forum ', 'bbpress' ); ?>
    3838
    3939            <?php endif; ?>
  • trunk/src/templates/default/bbpress/loop-search.php

    r4579 r5688  
    1616    <li class="bbp-header">
    1717
    18         <div class="bbp-search-author"><?php  _e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
     18        <div class="bbp-search-author"><?php esc_html_e( 'Author',  'bbpress' ); ?></div><!-- .bbp-reply-author -->
    1919
    2020        <div class="bbp-search-content">
    2121
    22             <?php _e( 'Search Results', 'bbpress' ); ?>
     22            <?php esc_html_e( 'Search Results', 'bbpress' ); ?>
    2323
    2424        </div><!-- .bbp-search-content -->
     
    3838    <li class="bbp-footer">
    3939
    40         <div class="bbp-search-author"><?php  _e( 'Author',  'bbpress' ); ?></div>
     40        <div class="bbp-search-author"><?php esc_html_e( 'Author',  'bbpress' ); ?></div>
    4141
    4242        <div class="bbp-search-content">
    4343
    44             <?php _e( 'Search Results', 'bbpress' ); ?>
     44            <?php esc_html_e( 'Search Results', 'bbpress' ); ?>
    4545
    4646        </div><!-- .bbp-search-content -->
  • trunk/src/templates/default/bbpress/loop-single-reply.php

    r5031 r5688  
    1919
    2020            <span class="bbp-header">
    21                 <?php _e( 'in reply to: ', 'bbpress' ); ?>
     21                <?php esc_html_e( 'in reply to: ', 'bbpress' ); ?>
    2222                <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a>
    2323            </span>
  • trunk/src/templates/default/bbpress/loop-single-topic.php

    r5156 r5688  
    5858            <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    5959
    60             <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
     60            <span class="bbp-topic-started-by"><?php printf( esc_html__( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
    6161
    6262            <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
     
    6666                <?php do_action( 'bbp_theme_before_topic_started_in' ); ?>
    6767
    68                 <span class="bbp-topic-started-in"><?php printf( __( 'in: <a href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>
     68                <span class="bbp-topic-started-in"><?php printf( esc_html__( 'in: %2$s', 'bbpress' ), '<a href="' . bbp_get_forum_permalink( bbp_get_topic_forum_id() ) . '">' . bbp_get_forum_title( bbp_get_topic_forum_id() ) . '</a>' ); ?></span>
    6969
    7070                <?php do_action( 'bbp_theme_after_topic_started_in' ); ?>
  • trunk/src/templates/default/bbpress/loop-topics.php

    r4733 r5688  
    1717
    1818        <ul class="forum-titles">
    19             <li class="bbp-topic-title"><?php _e( 'Topic', 'bbpress' ); ?></li>
    20             <li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li>
    21             <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
    22             <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
     19            <li class="bbp-topic-title"><?php esc_html_e( 'Topic', 'bbpress' ); ?></li>
     20            <li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'bbpress' ); ?></li>
     21            <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic()
     22                ? esc_html_e( 'Replies', 'bbpress' )
     23                : esc_html_e( 'Posts',   'bbpress' );
     24            ?></li>
     25            <li class="bbp-topic-freshness"><?php esc_html_e( 'Freshness', 'bbpress' ); ?></li>
    2326        </ul>
    2427
  • trunk/src/templates/default/bbpress/user-details.php

    r4982 r5688  
    2727                <li class="<?php if ( bbp_is_single_user_profile() ) :?>current<?php endif; ?>">
    2828                    <span class="vcard bbp-user-profile-link">
    29                         <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php _e( 'Profile', 'bbpress' ); ?></a>
     29                        <a class="url fn n" href="<?php bbp_user_profile_url(); ?>" title="<?php printf( esc_attr__( "%s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>" rel="me"><?php esc_html_e( 'Profile', 'bbpress' ); ?></a>
    3030                    </span>
    3131                </li>
     
    3333                <li class="<?php if ( bbp_is_single_user_topics() ) :?>current<?php endif; ?>">
    3434                    <span class='bbp-user-topics-created-link'>
    35                         <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Topics Started', 'bbpress' ); ?></a>
     35                        <a href="<?php bbp_user_topics_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Topics Started", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Topics Started', 'bbpress' ); ?></a>
    3636                    </span>
    3737                </li>
     
    3939                <li class="<?php if ( bbp_is_single_user_replies() ) :?>current<?php endif; ?>">
    4040                    <span class='bbp-user-replies-created-link'>
    41                         <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Replies Created', 'bbpress' ); ?></a>
     41                        <a href="<?php bbp_user_replies_created_url(); ?>" title="<?php printf( esc_attr__( "%s's Replies Created", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Replies Created', 'bbpress' ); ?></a>
    4242                    </span>
    4343                </li>
     
    4646                    <li class="<?php if ( bbp_is_favorites() ) :?>current<?php endif; ?>">
    4747                        <span class="bbp-user-favorites-link">
    48                             <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Favorites', 'bbpress' ); ?></a>
     48                            <a href="<?php bbp_favorites_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Favorites", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Favorites', 'bbpress' ); ?></a>
    4949                        </span>
    5050                    </li>
     
    5656                        <li class="<?php if ( bbp_is_subscriptions() ) :?>current<?php endif; ?>">
    5757                            <span class="bbp-user-subscriptions-link">
    58                                 <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Subscriptions', 'bbpress' ); ?></a>
     58                                <a href="<?php bbp_subscriptions_permalink(); ?>" title="<?php printf( esc_attr__( "%s's Subscriptions", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Subscriptions', 'bbpress' ); ?></a>
    5959                            </span>
    6060                        </li>
     
    6363                    <li class="<?php if ( bbp_is_single_user_edit() ) :?>current<?php endif; ?>">
    6464                        <span class="bbp-user-edit-link">
    65                             <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>
     65                            <a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php esc_html_e( 'Edit', 'bbpress' ); ?></a>
    6666                        </span>
    6767                    </li>
  • trunk/src/templates/default/bbpress/user-favorites.php

    r4733 r5688  
    1313
    1414    <div id="bbp-user-favorites" class="bbp-user-favorites">
    15         <h2 class="entry-title"><?php _e( 'Favorite Forum Topics', 'bbpress' ); ?></h2>
     15        <h2 class="entry-title"><?php esc_html_e( 'Favorite Forum Topics', 'bbpress' ); ?></h2>
    1616        <div class="bbp-user-section">
    1717
     
    2626            <?php else : ?>
    2727
    28                 <p><?php bbp_is_user_home() ? _e( 'You currently have no favorite topics.', 'bbpress' ) : _e( 'This user has no favorite topics.', 'bbpress' ); ?></p>
     28                <p><?php bbp_is_user_home()
     29                    ? esc_html_e( 'You currently have no favorite topics.', 'bbpress' )
     30                    : esc_html_e( 'This user has no favorite topics.',      'bbpress' );
     31                ?></p>
    2932
    3033            <?php endif; ?>
  • 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 -->
  • trunk/src/templates/default/bbpress/user-replies-created.php

    r4733 r5688  
    1313
    1414    <div id="bbp-user-replies-created" class="bbp-user-replies-created">
    15         <h2 class="entry-title"><?php _e( 'Forum Replies Created', 'bbpress' ); ?></h2>
     15        <h2 class="entry-title"><?php esc_html_e( 'Forum Replies Created', 'bbpress' ); ?></h2>
    1616        <div class="bbp-user-section">
    1717
     
    2626            <?php else : ?>
    2727
    28                 <p><?php bbp_is_user_home() ? _e( 'You have not replied to any topics.', 'bbpress' ) : _e( 'This user has not replied to any topics.', 'bbpress' ); ?></p>
     28                <p><?php bbp_is_user_home()
     29                    ? esc_html_e( 'You have not replied to any topics.',      'bbpress' )
     30                    : esc_html_e( 'This user has not replied to any topics.', 'bbpress' );
     31                ?></p>
    2932
    3033            <?php endif; ?>
  • trunk/src/templates/default/bbpress/user-subscriptions.php

    r5159 r5688  
    1717
    1818            <div id="bbp-user-subscriptions" class="bbp-user-subscriptions">
    19                 <h2 class="entry-title"><?php _e( 'Subscribed Forums', 'bbpress' ); ?></h2>
     19                <h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'bbpress' ); ?></h2>
    2020                <div class="bbp-user-section">
    2121
     
    2626                    <?php else : ?>
    2727
    28                         <p><?php bbp_is_user_home() ? _e( 'You are not currently subscribed to any forums.', 'bbpress' ) : _e( 'This user is not currently subscribed to any forums.', 'bbpress' ); ?></p>
     28                        <p><?php bbp_is_user_home()
     29                            ? esc_html_e( 'You are not currently subscribed to any forums.',      'bbpress' )
     30                            : esc_html_e( 'This user is not currently subscribed to any forums.', 'bbpress' );
     31                        ?></p>
    2932
    3033                    <?php endif; ?>
     
    3235                </div>
    3336
    34                 <h2 class="entry-title"><?php _e( 'Subscribed Topics', 'bbpress' ); ?></h2>
     37                <h2 class="entry-title"><?php esc_html_e( 'Subscribed Topics', 'bbpress' ); ?></h2>
    3538                <div class="bbp-user-section">
    3639
     
    4548                    <?php else : ?>
    4649
    47                         <p><?php bbp_is_user_home() ? _e( 'You are not currently subscribed to any topics.', 'bbpress' ) : _e( 'This user is not currently subscribed to any topics.', 'bbpress' ); ?></p>
     50                        <p><?php bbp_is_user_home()
     51                            ? esc_html_e( 'You are not currently subscribed to any topics.',      'bbpress' )
     52                            : esc_html_e( 'This user is not currently subscribed to any topics.', 'bbpress' );
     53                        ?></p>
    4854
    4955                    <?php endif; ?>
  • trunk/src/templates/default/bbpress/user-topics-created.php

    r4733 r5688  
    1313
    1414    <div id="bbp-user-topics-started" class="bbp-user-topics-started">
    15         <h2 class="entry-title"><?php _e( 'Forum Topics Started', 'bbpress' ); ?></h2>
     15        <h2 class="entry-title"><?php esc_html_e( 'Forum Topics Started', 'bbpress' ); ?></h2>
    1616        <div class="bbp-user-section">
    1717
     
    2626            <?php else : ?>
    2727
    28                 <p><?php bbp_is_user_home() ? _e( 'You have not created any topics.', 'bbpress' ) : _e( 'This user has not created any topics.', 'bbpress' ); ?></p>
     28                <p><?php bbp_is_user_home()
     29                    ? esc_html_e( 'You have not created any topics.',      'bbpress' )
     30                    : esc_html_e( 'This user has not created any topics.', 'bbpress' );
     31                ?></p>
    2932
    3033            <?php endif; ?>
  • trunk/src/templates/default/extras/page-forum-statistics.php

    r4803 r5688  
    2020            <div class="entry-content">
    2121
    22                 <?php get_the_content() ? the_content() : _e( '<p>Here are the statistics and popular topics of our forums.</p>', 'bbpress' ); ?>
     22                <?php get_the_content() ? the_content() : wpautop( esc_html__( 'Here are the statistics and popular topics of our forums.', 'bbpress' ) ); ?>
    2323
    2424                <div id="bbpress-forums">
     
    3232                    <?php if ( bbp_view_query( 'popular' ) ) : ?>
    3333
    34                         <h2 class="entry-title"><?php _e( 'Popular Topics', 'bbpress' ); ?></h2>
     34                        <h2 class="entry-title"><?php esc_html_e( 'Popular Topics', 'bbpress' ); ?></h2>
    3535
    3636                        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
  • trunk/src/templates/default/extras/page-topic-tags.php

    r4733 r5688  
    2020            <div class="entry-content">
    2121
    22                 <?php get_the_content() ? the_content() : _e( '<p>This is a collection of tags that are currently popular on our forums.</p>', 'bbpress' ); ?>
     22                <?php get_the_content() ? the_content() : wpautop( esc_html__( 'This is a collection of tags that are currently popular on our forums.', 'bbpress' ) ); ?>
    2323
    2424                <div id="bbpress-forums">
  • trunk/src/templates/default/extras/taxonomy-topic-tag-edit.php

    r4733 r5688  
    1515
    1616    <div id="topic-tag" class="bbp-topic-tag">
    17         <h1 class="entry-title"><?php printf( __( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
     17        <h1 class="entry-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
    1818
    1919        <div class="entry-content">
  • trunk/src/templates/default/extras/taxonomy-topic-tag.php

    r4733 r5688  
    1515
    1616    <div id="topic-tag" class="bbp-topic-tag">
    17         <h1 class="entry-title"><?php printf( __( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
     17        <h1 class="entry-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
    1818        <div class="entry-content">
    1919
Note: See TracChangeset for help on using the changeset viewer.