Skip to:
Content

BuddyPress.org


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

Members Widget: Replace the 'for' value with 'id' value of 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

    r9955 r10118  
    196196
    197197        <p>
    198             <label for="bp-core-widget-title">
     198            <label for="<?php echo $this->get_field_id( 'title' ); ?>">
    199199                <?php esc_html_e( 'Title:', 'buddypress' ); ?>
    200200                <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" style="width: 100%" />
Note: See TracChangeset for help on using the changeset viewer.