woocommerce_wp_checkbox was setting value to "on" not "yes" by default

This commit is contained in:
Patrick Garman 2012-01-30 10:30:29 +00:00
parent 2f7967b347
commit 6bdec72167
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ function woocommerce_wp_checkbox( $field ) {
echo '<p class="form-field '.$field['id'].'_field '.$field['wrapper_class'].'"><label for="'.$field['id'].'">'.$field['label'].'</label><input type="checkbox" class="'.$field['class'].'" name="'.$field['id'].'" id="'.$field['id'].'" '; echo '<p class="form-field '.$field['id'].'_field '.$field['wrapper_class'].'"><label for="'.$field['id'].'">'.$field['label'].'</label><input type="checkbox" class="'.$field['class'].'" name="'.$field['id'].'" id="'.$field['id'].'" ';
checked($field['value'], 'yes'); checked($field['value'], 'on');
echo ' /> '; echo ' /> ';