We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da409ac + 6ae494f commit b15548bCopy full SHA for b15548b
core/Field/Select_Field.php
@@ -20,7 +20,7 @@ public function to_json( $load ) {
20
$values = wp_list_pluck( $options, 'value' );
21
$value = $this->get_formatted_value();
22
if ( ! in_array( $value, $values ) ) {
23
- $value = $options[0];
+ $value = $values[0];
24
}
25
26
$field_data = array_merge( $field_data, array(
0 commit comments