Skip to:
Content

BuddyPress.org

Changeset 10122


Ignore:
Timestamp:
09/17/2015 04:05:31 PM (5 years ago)
Author:
mercime
Message:

Who is Online Widget: Replace the 'for' value to bind 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

    r10121 r10122  
    364364
    365365        <p>
    366             <label for="bp-core-widget-title">
     366            <label for="<?php echo $this->get_field_id( 'title' ); ?>">
    367367                <?php esc_html_e( 'Title:', 'buddypress' ); ?>
    368368                <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%" />
     
    371371
    372372        <p>
    373             <label for="bp-core-widget-members-max">
     373            <label for="<?php echo $this->get_field_id( 'max_members' ); ?>">
    374374                <?php esc_html_e( 'Max Members to show:', 'buddypress' ); ?>
    375375                <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.