Make WordPress Core

Ticket #27690: 27690.3.patch

File 27690.3.patch, 1.4 KB (added by westonruter, 12 years ago)

Restore 'sidebars_widgets[wp_inactive_widgets]' string from replaced 'sidebars_widgets[wp_inactiveWidgets]'

  • src/wp-admin/js/customize-widgets.js

    diff --git src/wp-admin/js/customize-widgets.js src/wp-admin/js/customize-widgets.js
    index 1d7579f..0f42db3 100644
     
    13801380
    13811381                                                // Check if the widget is in another sidebar
    13821382                                                api.each( function( otherSetting ) {
    1383                                                         if ( otherSetting.id === self.setting.id || 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) || otherSetting.id === 'sidebars_widgets[wp_inactiveWidgets]' ) {
     1383                                                        if ( otherSetting.id === self.setting.id || 0 !== otherSetting.id.indexOf( 'sidebars_widgets[' ) || otherSetting.id === 'sidebars_widgets[wp_inactive_widgets]' ) {
    13841384                                                                return;
    13851385                                                        }
    13861386
     
    14111411                                                // Move widget to inactive widgets sidebar (move it to trash) if has been previously saved
    14121412                                                // This prevents the inactive widgets sidebar from overflowing with throwaway widgets
    14131413                                                if ( api.Widgets.savedWidgetIds[removedWidgetId] ) {
    1414                                                         inactiveWidgets = api.value( 'sidebars_widgets[wp_inactiveWidgets]' )().slice();
     1414                                                        inactiveWidgets = api.value( 'sidebars_widgets[wp_inactive_widgets]' )().slice();
    14151415                                                        inactiveWidgets.push( removedWidgetId );
    1416                                                         api.value( 'sidebars_widgets[wp_inactiveWidgets]' )( _( inactiveWidgets ).unique() );
     1416                                                        api.value( 'sidebars_widgets[wp_inactive_widgets]' )( _( inactiveWidgets ).unique() );
    14171417                                                }
    14181418
    14191419                                                // Make old single widget available for adding again