Merge pull request #8536 from vicky081/patch-3

Class attribute added for Checkbox in settings
This commit is contained in:
Claudio Sanches 2015-07-09 11:43:00 -03:00
commit c4c2ebd038
1 changed files with 1 additions and 0 deletions

View File

@ -464,6 +464,7 @@ class WC_Admin_Settings {
name="<?php echo esc_attr( $value['id'] ); ?>"
id="<?php echo esc_attr( $value['id'] ); ?>"
type="checkbox"
class="<?php echo esc_attr(isset($value['class']) ? $value['class'] : ''); ?>"
value="1"
<?php checked( $option_value, 'yes'); ?>
<?php echo implode( ' ', $custom_attributes ); ?>