Skip to content

Commit

Permalink
Resolve issue where only IDs are valid values
Browse files Browse the repository at this point in the history
  • Loading branch information
mustardBees committed Sep 10, 2014
1 parent 4fbe4d1 commit ef4215b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmb-field-select2.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function pw_select2_sanitise( $meta_value, $field ) {
if ( empty( $meta_value ) ) {
$meta_value = '';
} elseif ( 'pw_multiselect' == $field['type'] ) {
$meta_value = wp_parse_id_list( $meta_value );
$meta_value = explode( ',', $meta_value );
}

return $meta_value;
Expand Down

0 comments on commit ef4215b

Please sign in to comment.