Make WordPress Core

Changeset 27890


Ignore:
Timestamp:
04/01/2014 11:07:59 AM (8 years ago)
Author:
ocean90
Message:

Revert [27654] for strings.

props westonruter.
fixes #27485.

File:
1 edited

Legend:

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

    r27819 r27890  
    260260                        // Check if the widget is in another sidebar
    261261                        wp.customize.each( function ( other_setting ) {
    262                             if ( other_setting.id === control.setting.id || 0 !== _.indexOf( other_setting.id, 'sidebars_widgets[' ) || other_setting.id === 'sidebars_widgets[wp_inactive_widgets]' ) {
     262                            if ( other_setting.id === control.setting.id || 0 !== other_setting.id.indexOf( 'sidebars_widgets[' ) || other_setting.id === 'sidebars_widgets[wp_inactive_widgets]' ) {
    263263                                return;
    264264                            }
     
    570570                    return;
    571571                }
    572                 if ( 0 !== _.indexOf( other_setting.id, 'sidebars_widgets[' ) ) {
     572                if ( 0 !== other_setting.id.indexOf( 'sidebars_widgets[' ) ) {
    573573                    return;
    574574                }
     
    761761            // Reposition whenever a sidebar's widgets are changed
    762762            wp.customize.each( function ( setting ) {
    763                 if ( 0 === _.indexOf( setting.id, 'sidebars_widgets[' ) ) {
     763                if ( 0 === setting.id.indexOf( 'sidebars_widgets[' ) ) {
    764764                    setting.bind( function () {
    765765                        if ( control.container.hasClass( 'expanded' ) ) {
Note: See TracChangeset for help on using the changeset viewer.