diff --git src/wp-admin/js/customize-widgets.js src/wp-admin/js/customize-widgets.js
index 6be9a08..811fbdb 100644
|
|
|
1624 | 1624 | widgetNumber = parsedWidgetId.number, |
1625 | 1625 | widgetIdBase = parsedWidgetId.id_base, |
1626 | 1626 | widget = api.Widgets.availableWidgets.findWhere( {id_base: widgetIdBase} ), |
1627 | | settingId, isExistingWidget, widgetFormControl, sidebarWidgets, settingArgs; |
| 1627 | settingId, isExistingWidget, widgetFormControl, sidebarWidgets, settingArgs, setting; |
1628 | 1628 | |
1629 | 1629 | if ( ! widget ) { |
1630 | 1630 | return false; |
… |
… |
|
1683 | 1683 | transport: 'refresh', |
1684 | 1684 | previewer: this.setting.previewer |
1685 | 1685 | }; |
1686 | | api.create( settingId, settingId, {}, settingArgs ); |
| 1686 | setting = api.create( settingId, settingId, '', settingArgs ); |
| 1687 | setting.set( {} ); // mark dirty, changing from '' to {} |
1687 | 1688 | } |
1688 | 1689 | |
1689 | 1690 | controlConstructor = api.controlConstructor[controlType]; |