Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/28/2015 08:47:48 PM (9 years ago)
Author:
mercime
Message:

Add 'for' attribute to label for each Activity type used in lists.

Fixes #6616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r10253 r10317  
    40474047                break;
    40484048            case 'checkbox' :
    4049                 printf( '<label style="">%1$s<input type="checkbox" name="%2$s[]" value="%3$s" %4$s/></label>', esc_html( $description ), esc_attr( $args['checkbox_name'] ), esc_attr( $type ), $checked );
     4049                printf( '<label style="" for="%1$s[]">%2$s<input type="checkbox" id="%1$s[]" name="%1$s[]" value="%3$s" %4$s/></label>', esc_attr( $args['checkbox_name'] ), esc_html( $description ), esc_attr( $args['checkbox_name'] ), esc_attr( $args['checkbox_name'] ), esc_attr( $type ), $checked );
    40504050                break;
    40514051        }
Note: See TracChangeset for help on using the changeset viewer.