Revert [27654] for strings.

props westonruter.
fixes #27485.
Built from https://develop.svn.wordpress.org/trunk@27890


git-svn-id: http://core.svn.wordpress.org/trunk@27721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-04-01 11:08:16 +00:00
parent 4af2840a47
commit 6528b7804b
2 changed files with 4 additions and 4 deletions

View File

@ -259,7 +259,7 @@ var WidgetCustomizer = ( function ($) {
// Check if the widget is in another sidebar // Check if the widget is in another sidebar
wp.customize.each( function ( other_setting ) { wp.customize.each( function ( other_setting ) {
if ( other_setting.id === control.setting.id || 0 !== _.indexOf( other_setting.id, 'sidebars_widgets[' ) || other_setting.id === 'sidebars_widgets[wp_inactive_widgets]' ) { if ( other_setting.id === control.setting.id || 0 !== other_setting.id.indexOf( 'sidebars_widgets[' ) || other_setting.id === 'sidebars_widgets[wp_inactive_widgets]' ) {
return; return;
} }
var other_sidebar_widgets = other_setting(), i; var other_sidebar_widgets = other_setting(), i;
@ -569,7 +569,7 @@ var WidgetCustomizer = ( function ($) {
if ( other_setting.id === control.setting.id ) { if ( other_setting.id === control.setting.id ) {
return; return;
} }
if ( 0 !== _.indexOf( other_setting.id, 'sidebars_widgets[' ) ) { if ( 0 !== other_setting.id.indexOf( 'sidebars_widgets[' ) ) {
return; return;
} }
var other_sidebar_widgets = other_setting().slice(), i; var other_sidebar_widgets = other_setting().slice(), i;
@ -760,7 +760,7 @@ var WidgetCustomizer = ( function ($) {
// Reposition whenever a sidebar's widgets are changed // Reposition whenever a sidebar's widgets are changed
wp.customize.each( function ( setting ) { wp.customize.each( function ( setting ) {
if ( 0 === _.indexOf( setting.id, 'sidebars_widgets[' ) ) { if ( 0 === setting.id.indexOf( 'sidebars_widgets[' ) ) {
setting.bind( function () { setting.bind( function () {
if ( control.container.hasClass( 'expanded' ) ) { if ( control.container.hasClass( 'expanded' ) ) {
position_widget(); position_widget();

File diff suppressed because one or more lines are too long