Skip to:
Content

BuddyPress.org

Changeset 11152


Ignore:
Timestamp:
09/22/2016 01:01:24 AM (3 years ago)
Author:
r-a-y
Message:

Correct misuse of escaping functions, part 2.

dcavins and I are eating the same pizza. See r11141.

Anti-props r-a-y.

See #7210.

Location:
trunk/src/bp-templates/bp-legacy/buddypress/groups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r11146 r11152  
    147147                        <?php foreach ( $group_types as $type ) : ?>
    148148                            <div class="checkbox">
    149                                 <label for="<?php printf( 'group-type-%s', $type->name ); ?>"><input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php esc_attr_e( $type->name ); ?>" /> <?php esc_html_e( $type->labels['name'] ); ?>
     149                                <label for="<?php printf( 'group-type-%s', $type->name ); ?>"><input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" /> <?php echo esc_html( $type->labels['name'] ); ?>
    150150                                    <?php
    151151                                        if ( isset( $type->description ) ) {
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php

    r11146 r11152  
    7979            <div class="checkbox">
    8080                <label for="<?php printf( 'group-type-%s', $type->name ); ?>">
    81                     <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php esc_attr_e( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php esc_html_e( $type->labels['name'] ); ?>
     81                    <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?>
    8282                    <?php
    8383                        if ( ! empty( $type->description ) ) {
Note: See TracChangeset for help on using the changeset viewer.