Skip to:
Content

BuddyPress.org

Changeset 10188


Ignore:
Timestamp:
10/05/2015 02:15:16 AM (9 years ago)
Author:
mercime
Message:

Add 'for' attribute to label tag for radio xProfile fields.

See #6532.

File:
1 edited

Legend:

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

    r10179 r10188  
    132132            }
    133133
    134             $new_html = sprintf( '<label><input %1$s type="radio" name="%2$s" id="%3$s" value="%4$s">%5$s</label>',
     134            $new_html = sprintf( '<label for="%3$s"><input %1$s type="radio" name="%2$s" id="%3$s" value="%4$s">%5$s</label>',
    135135                $selected,
    136136                esc_attr( "field_{$this->field_obj->id}" ),
Note: See TracChangeset for help on using the changeset viewer.