Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/19/2015 04:27:37 PM (11 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-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
Note: See TracChangeset for help on using the changeset viewer.