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 b15548b + cf29472 commit af0ac87Copy full SHA for af0ac87
core/Field/Sidebar_Field.php
@@ -52,6 +52,12 @@ public function to_json( $load ) {
52
53
$field_data = parent::to_json( $load );
54
55
+ // override default value assigning behavior since sidebars are
56
+ // loaded separately and not as a part of the field options
57
+ $field_data = array_merge( $field_data, array(
58
+ 'value' => $this->get_formatted_value(),
59
+ ) );
60
+
61
if ( ! empty( $this->excluded_sidebars ) ) {
62
if ( ! is_array( $this->excluded_sidebars ) ) {
63
$this->excluded_sidebars = array( $this->excluded_sidebars );
0 commit comments