Make WordPress Core

Changeset 28034


Ignore:
Timestamp:
04/08/2014 04:02:07 AM (11 years ago)
Author:
nacin
Message:

Widget Customizer: Fix incorrect replacement in [27995].

props westonruter.
fixes #27690.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-widgets.js

    r27995 r28034  
    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                            }
     
    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
Note: See TracChangeset for help on using the changeset viewer.