From 09877657d47b3c136f80e7647a647cda93a98322 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 30 Jul 2014 16:23:47 +0000 Subject: [PATCH] Customizer: Don't hide controls the preview frame has no information about. props kovshenin. see #27993. git-svn-id: https://develop.svn.wordpress.org/trunk@29329 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-controls.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index 22b3975e9d..5ea7aff73c 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -589,13 +589,6 @@ return; } - // Any controls not even registered on the previewed URL are not active either - api.control.each( function ( control ) { - if ( typeof data.activeControls[ control.id ] === 'undefined' ) { - data.activeControls[ control.id ] = false; - } - } ); - $.each( data.activeControls, function ( id, active ) { var control = api.control( id ); if ( control ) {