Changeset 28034
- Timestamp:
- 04/08/2014 04:02:07 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-widgets.js
r27995 r28034 1381 1381 // Check if the widget is in another sidebar 1382 1382 api.each( function( otherSetting ) { 1383 if ( otherSetting.id === self.setting.id || 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) || otherSetting.id === 'sidebars_widgets[wp_inactive Widgets]' ) {1383 if ( otherSetting.id === self.setting.id || 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) || otherSetting.id === 'sidebars_widgets[wp_inactive_widgets]' ) { 1384 1384 return; 1385 1385 } … … 1412 1412 // This prevents the inactive widgets sidebar from overflowing with throwaway widgets 1413 1413 if ( api.Widgets.savedWidgetIds[removedWidgetId] ) { 1414 inactiveWidgets = api.value( 'sidebars_widgets[wp_inactive Widgets]' )().slice();1414 inactiveWidgets = api.value( 'sidebars_widgets[wp_inactive_widgets]' )().slice(); 1415 1415 inactiveWidgets.push( removedWidgetId ); 1416 api.value( 'sidebars_widgets[wp_inactive Widgets]' )( _( inactiveWidgets ).unique() );1416 api.value( 'sidebars_widgets[wp_inactive_widgets]' )( _( inactiveWidgets ).unique() ); 1417 1417 } 1418 1418
Note: See TracChangeset
for help on using the changeset viewer.