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:
parent
4af2840a47
commit
6528b7804b
|
@ -259,7 +259,7 @@ var WidgetCustomizer = ( function ($) {
|
|||
|
||||
// Check if the widget is in another sidebar
|
||||
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;
|
||||
}
|
||||
var other_sidebar_widgets = other_setting(), i;
|
||||
|
@ -569,7 +569,7 @@ var WidgetCustomizer = ( function ($) {
|
|||
if ( other_setting.id === control.setting.id ) {
|
||||
return;
|
||||
}
|
||||
if ( 0 !== _.indexOf( other_setting.id, 'sidebars_widgets[' ) ) {
|
||||
if ( 0 !== other_setting.id.indexOf( 'sidebars_widgets[' ) ) {
|
||||
return;
|
||||
}
|
||||
var other_sidebar_widgets = other_setting().slice(), i;
|
||||
|
@ -760,7 +760,7 @@ var WidgetCustomizer = ( function ($) {
|
|||
|
||||
// Reposition whenever a sidebar's widgets are changed
|
||||
wp.customize.each( function ( setting ) {
|
||||
if ( 0 === _.indexOf( setting.id, 'sidebars_widgets[' ) ) {
|
||||
if ( 0 === setting.id.indexOf( 'sidebars_widgets[' ) ) {
|
||||
setting.bind( function () {
|
||||
if ( control.container.hasClass( 'expanded' ) ) {
|
||||
position_widget();
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue