Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/27/2013 08:25:05 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Use esc_html_e() in extensions. See #1999.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/extend/buddypress/group.php

    r4817 r4959  
    266266        $checked = is_admin() ? bp_group_is_forum_enabled( $group ) : bp_get_new_group_enable_forum() || bp_group_is_forum_enabled( bp_get_group_id() ); ?>
    267267
    268         <h4><?php _e( 'Group Forum Settings', 'bbpress' ); ?></h4>
     268        <h4><?php esc_html_e( 'Group Forum Settings', 'bbpress' ); ?></h4>
    269269
    270270        <fieldset>
    271             <legend class="screen-reader-text"><?php _e( 'Group Forum Settings', 'bbpress' ); ?></legend>
    272             <p><?php _e( 'Create a discussion forum to allow members of this group to communicate in a structured, bulletin-board style fashion.', 'bbpress' ); ?></p>
     271            <legend class="screen-reader-text"><?php esc_html_e( 'Group Forum Settings', 'bbpress' ); ?></legend>
     272            <p><?php esc_html_e( 'Create a discussion forum to allow members of this group to communicate in a structured, bulletin-board style fashion.', 'bbpress' ); ?></p>
    273273
    274274            <div class="field-group">
    275275                <div class="checkbox">
    276                     <label><input type="checkbox" name="bbp-edit-group-forum" id="bbp-edit-group-forum" value="1"<?php checked( $checked ); ?> /> <?php _e( 'Yes. I want this group to have a forum.', 'bbpress' ); ?></label>
     276                    <label><input type="checkbox" name="bbp-edit-group-forum" id="bbp-edit-group-forum" value="1"<?php checked( $checked ); ?> /> <?php esc_html_e( 'Yes. I want this group to have a forum.', 'bbpress' ); ?></label>
    277277                </div>
    278278
    279                 <p class="description"><?php _e( 'Saying no will not delete existing forum content.', 'bbpress' ); ?></p>
     279                <p class="description"><?php esc_html_e( 'Saying no will not delete existing forum content.', 'bbpress' ); ?></p>
    280280            </div>
    281281
    282282            <?php if ( bbp_is_user_keymaster() ) : ?>
    283283                <div class="field-group">
    284                     <label for="bbp_group_forum_id"><?php _e( 'Group Forum:', 'bbpress' ); ?></label>
     284                    <label for="bbp_group_forum_id"><?php esc_html_e( 'Group Forum:', 'bbpress' ); ?></label>
    285285                    <?php
    286286                        bbp_dropdown( array(
     
    290290                        ) );
    291291                    ?>
    292                     <p class="description"><?php _e( 'Network administrators can reconfigure which forum belongs to this group.', 'bbpress' ); ?></p>
     292                    <p class="description"><?php esc_html_e( 'Network administrators can reconfigure which forum belongs to this group.', 'bbpress' ); ?></p>
    293293                </div>
    294294            <?php endif; ?>
     
    464464        $checked = bp_get_new_group_enable_forum() || groups_get_groupmeta( bp_get_new_group_id(), 'forum_id' ); ?>
    465465
    466         <h4><?php _e( 'Group Forum', 'bbpress' ); ?></h4>
    467 
    468         <p><?php _e( 'Create a discussion forum to allow members of this group to communicate in a structured, bulletin-board style fashion.', 'bbpress' ); ?></p>
     466        <h4><?php esc_html_e( 'Group Forum', 'bbpress' ); ?></h4>
     467
     468        <p><?php esc_html_e( 'Create a discussion forum to allow members of this group to communicate in a structured, bulletin-board style fashion.', 'bbpress' ); ?></p>
    469469
    470470        <div class="checkbox">
    471             <label><input type="checkbox" name="bbp-create-group-forum" id="bbp-create-group-forum" value="1"<?php checked( $checked ); ?> /> <?php _e( 'Yes. I want this group to have a forum.', 'bbpress' ); ?></label>
     471            <label><input type="checkbox" name="bbp-create-group-forum" id="bbp-create-group-forum" value="1"<?php checked( $checked ); ?> /> <?php esc_html_e( 'Yes. I want this group to have a forum.', 'bbpress' ); ?></label>
    472472        </div>
    473473
     
    755755
    756756                        <div id="message" class="info">
    757                             <p><?php _e( 'This group does not currently have a forum.', 'bbpress' ); ?></p>
     757                            <p><?php esc_html_e( 'This group does not currently have a forum.', 'bbpress' ); ?></p>
    758758                        </div>
    759759
     
    10201020
    10211021        <p>
    1022             <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
     1022            <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></label><br />
    10231023            <?php bbp_dropdown( array( 'include' => $forum_ids, 'selected' => bbp_get_form_topic_forum() ) ); ?>
    10241024        </p>
Note: See TracChangeset for help on using the changeset viewer.