Skip to:
Content

BuddyPress.org

Changeset 11141


Ignore:
Timestamp:
09/21/2016 05:45:52 PM (3 years ago)
Author:
dcavins
Message:

Correct misuse of escaping functions.

Don’t use esc_html_e() when you mean echo esc_html().

Anti-props dcavins.

See #6060, #7175.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-list-table.php

    r11139 r11141  
    761761                <?php foreach( $types as $type ) : ?>
    762762
    763                     <option value="<?php echo esc_attr( $type->name ); ?>"><?php esc_html_e( $type->labels['singular_name'] ); ?></option>
     763                    <option value="<?php echo esc_attr( $type->name ); ?>"><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    764764
    765765                <?php endforeach; ?>
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r11140 r11141  
    20852085            <?php foreach( $types as $type ) : ?>
    20862086
    2087                 <option value="<?php echo esc_attr( $type->name ); ?>"><?php esc_html_e( $type->labels['singular_name'] ); ?></option>
     2087                <option value="<?php echo esc_attr( $type->name ); ?>"><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    20882088
    20892089            <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.