Skip to:
Content

BuddyPress.org

Changeset 10120


Ignore:
Timestamp:
09/17/2015 04:02:36 PM (9 years ago)
Author:
mercime
Message:

Members Widget: Replace the 'for' value to bind label to input.

Accessibility fix which replaces the static 'for' value with the
dynamic 'id' value of the input field.

See #6624.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-widgets.php

    r10119 r10120  
    210210
    211211        <p>
    212             <label for="bp-core-widget-members-max">
     212            <label for="<?php echo $this->get_field_id( 'max_members' ); ?>">
    213213                <?php esc_html_e( 'Max members to show:', 'buddypress' ); ?>
    214214                <input class="widefat" id="<?php echo $this->get_field_id( 'max_members' ); ?>" name="<?php echo $this->get_field_name( 'max_members' ); ?>" type="text" value="<?php echo esc_attr( $max_members ); ?>" style="width: 30%" />
Note: See TracChangeset for help on using the changeset viewer.