Skip to:
Content

BuddyPress.org

Changeset 10107


Ignore:
Timestamp:
09/12/2015 06:13:23 AM (9 years ago)
Author:
mercime
Message:

Add 'for' attribute to label in Groups > Create screen.

Accesibility fix binds label to checkbox field to enable
discussion forum.

See #6618.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r9896 r10107  
    157157
    158158                        <div class="checkbox">
    159                             <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
     159                            <label for="group-show-forum"><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    160160                        </div>
    161161                    <?php elseif ( is_super_admin() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.