Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed Jul 17, 2017
2 parents da409ac + 6ae494f commit b15548b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Field/Select_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function to_json( $load ) {
$values = wp_list_pluck( $options, 'value' );
$value = $this->get_formatted_value();
if ( ! in_array( $value, $values ) ) {
$value = $options[0];
$value = $values[0];
}

$field_data = array_merge( $field_data, array(
Expand Down

0 comments on commit b15548b

Please sign in to comment.