Skip to:
Content

BuddyPress.org

Changeset 8490


Ignore:
Timestamp:
06/09/2014 03:12:49 PM (10 years ago)
Author:
boonebgorges
Message:

Make sure to echo xprofile visibility label 'for' attribute

The echo was mistakenly removed in r8210, with the result that in BP 2.0 it
was not possible to click on the <label> elements to select visibility radio
buttons.

Fixes #5693

Props SGr33n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/bp-xprofile/bp-xprofile-template.php

    r8214 r8490  
    732732                    <?php echo $r['before_radio']; ?>
    733733
    734                     <label for="<?php esc_attr( 'see-field_' . $r['field_id'] . '_' . $level['id'] ); ?>">
     734                    <label for="<?php echo esc_attr( 'see-field_' . $r['field_id'] . '_' . $level['id'] ); ?>">
    735735                        <input type="radio" id="<?php echo esc_attr( 'see-field_' . $r['field_id'] . '_' . $level['id'] ); ?>" name="<?php echo esc_attr( 'field_' . $r['field_id'] . '_visibility' ); ?>" value="<?php echo esc_attr( $level['id'] ); ?>" <?php checked( $level['id'], bp_get_the_profile_field_visibility_level() ); ?> />
    736736                        <span class="field-visibility-text"><?php echo esc_html( $level['label'] ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.