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-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(); ?>" />
Note: See TracChangeset for help on using the changeset viewer.