Skip to content

Commit

Permalink
Quick fix for category arrays - #59
Browse files Browse the repository at this point in the history
  • Loading branch information
JayWood committed Oct 15, 2016
1 parent c622b36 commit 3ca6eee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,8 @@ public function select2_multi( $args = array() ) {
}

$option_value = get_option( $field_id, $field_id, $default );

?>
<select name="<?php echo $field_id; ?>" id="<?php echo $field_id; ?>" class="cwv2_select2 widefat" multiple="multiple">
<select name="<?php echo $field_id; ?>[]" id="<?php echo $field_id; ?>" class="cwv2_select2 widefat" multiple="multiple">
<?php foreach ( $options as $k => $v ) : ?>
<option value="<?php echo $k; ?>" <?php $this->selected_array( $option_value, $k ); ?>><?php echo $v; ?></option>
<?php endforeach; ?>
Expand Down

0 comments on commit 3ca6eee

Please sign in to comment.