Skip to content

Commit

Permalink
Move is_widget_customizer_js_value elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed May 27, 2021
1 parent f240cdb commit 7381fbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ export default class SidebarAdapter {
number = widgetModel.get( 'multi_number' );
}

widget.instance.is_widget_customizer_js_value = true;

const settingId = number
? `widget_${ widget.idBase }[${ number }]`
: `widget_${ widget.idBase }`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ function blockToWidget( block, existingWidget = null ) {
idBase: block.attributes.idBase,
instance: {
...existingWidget?.instance,
// Required only for the customizer.
is_widget_customizer_js_value: true,
encoded_serialized_instance: encoded,
instance_hash_key: hash,
raw_instance: raw,
Expand Down

0 comments on commit 7381fbb

Please sign in to comment.