Class attribute added for Checkbox in settings

Noticed class attribute missed in checkbox of admin settings function, this class name will help for developer also, can you please consider this as my proposal?
This commit is contained in:
Vignesh 2015-07-08 20:24:36 +05:30
parent 38d0d0dcad
commit 4eef4bf846
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($value['class']); ?>"
value="1"
<?php checked( $option_value, 'yes'); ?>
<?php echo implode( ' ', $custom_attributes ); ?>