Skip to:
Content

BuddyPress.org


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

Recently Active: Replace the 'for' value to bind label to input.

Accessibility fix which replaces two static 'for' values with the
dynamic 'id' values of respective input fields.

See #6624.

File:
1 edited

Legend:

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

    r10122 r10123  
    514514
    515515        <p>
    516             <label for="bp-core-widget-members-title">
     516            <label for="<?php echo $this->get_field_id( 'title' ); ?>">
    517517                <?php esc_html_e( 'Title:', 'buddypress' ); ?>
    518518                <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%" />
     
    521521
    522522        <p>
    523             <label for="bp-core-widget-members-max">
     523            <label for="<?php echo $this->get_field_id( 'max_members' ); ?>">
    524524                <?php esc_html_e( 'Max Members to show:', 'buddypress' ); ?>
    525525                <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.