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-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
Note: See TracChangeset for help on using the changeset viewer.