Skip to:
Content

bbPress.org


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/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
Note: See TracChangeset for help on using the changeset viewer.