Skip to:
Content

BuddyPress.org

Changeset 10187


Ignore:
Timestamp:
10/05/2015 02:11:04 AM (4 years ago)
Author:
mercime
Message:

Add 'for' attribute to label tag for checkbox xProfile field.

See #6532.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php

    r10179 r10187  
    139139            }
    140140
    141             $new_html = sprintf( '<label><input %1$s type="checkbox" name="%2$s" id="%3$s" value="%4$s">%5$s</label>',
     141            $new_html = sprintf( '<label for="%3$s"><input %1$s type="checkbox" name="%2$s" id="%3$s" value="%4$s">%5$s</label>',
    142142                $selected,
    143143                esc_attr( "field_{$this->field_obj->id}[]" ),
Note: See TracChangeset for help on using the changeset viewer.