Revert [27654] for strings.
props westonruter. fixes #27485. git-svn-id: https://develop.svn.wordpress.org/trunk@27890 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
33acf29a46
commit
ab5b649243
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user