Changeset 30104
- Timestamp:
- 10/29/2014 10:56:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-widgets.js
r30102 r30104 1682 1682 widgetIdBase = parsedWidgetId.id_base, 1683 1683 widget = api.Widgets.availableWidgets.findWhere( {id_base: widgetIdBase} ), 1684 settingId, isExistingWidget, widgetFormControl, sidebarWidgets, settingArgs;1684 settingId, isExistingWidget, widgetFormControl, sidebarWidgets, settingArgs, setting; 1685 1685 1686 1686 if ( ! widget ) { … … 1739 1739 previewer: this.setting.previewer 1740 1740 }; 1741 api.create( settingId, settingId, {}, settingArgs ); 1741 setting = api.create( settingId, settingId, '', settingArgs ); 1742 setting.set( {} ); // mark dirty, changing from '' to {} 1742 1743 } 1743 1744
Note: See TracChangeset
for help on using the changeset viewer.