Skip to:
Content

BuddyPress.org

Changeset 10119


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

Members Widget: Add 'id' attribute to input field and bind to label.

Accessibility fix adds a new dynamic 'id' value to the input field
and replaces the static value of the label 'for' attribute with
the new 'id' value of the checkbox to link widget title to Members
directory

See #6624.

File:
1 edited

Legend:

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

    r10118 r10119  
    203203
    204204        <p>
    205             <label for="<?php echo $this->get_field_name( 'link_title' ) ?>">
    206                 <input type="checkbox" name="<?php echo $this->get_field_name( 'link_title' ) ?>" value="1" <?php checked( $link_title ) ?> />
     205            <label for="<?php echo $this->get_field_id( 'link_title' ) ?>">
     206                <input type="checkbox" name="<?php echo $this->get_field_name( 'link_title' ) ?>" id="<?php echo $this->get_field_id( 'link_title' ) ?>" value="1" <?php checked( $link_title ) ?> />
    207207                <?php esc_html_e( 'Link widget title to Members directory', 'buddypress' ); ?>
    208208            </label>
Note: See TracChangeset for help on using the changeset viewer.