- '<input type="hidden" name="tags[%1$s]" value="" />' .
- '<input type="checkbox" name="tags[%s]" value="1"%s%s /> %s',
- $tag,
+ '<input type="hidden" name="%1$s" value="" />' .
+ '<input type="checkbox" name="%s" value="1" id="%s"%s%s />' .
+ '<label for="%2$s"> %s</label>',
+ "tags[$tag]", "tag-$tag",