Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes bug with field type "checkbox"

This commit adds the missing compare parameter "on"
  • Loading branch information...
commit 4290da2cfeb7f6fd650ac028dfffbb1098a59872 1 parent fc15a5b
@PhilippSchreiber authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  custom_metadata.php
View
2  custom_metadata.php
@@ -926,7 +926,7 @@ function _display_metadata_field( $field_slug, $field, $object_type, $object_id
<?php break; ?>
<?php case 'checkbox': ?>
- <input type="checkbox" id="<?php echo $field_slug; ?>" name="<?php echo $field_id; ?>" <?php checked($checked = $v ); ?> />
+ <input type="checkbox" id="<?php echo $field_slug; ?>" name="<?php echo $field_id; ?>" <?php checked($checked = $v, 'on' ); ?> />
<?php break; ?>
<?php case 'radio': ?>
Please sign in to comment.
Something went wrong with that request. Please try again.