Customizer: Don't hide controls the preview frame has no information about.
props kovshenin. see #27993. Built from https://develop.svn.wordpress.org/trunk@29329 git-svn-id: http://core.svn.wordpress.org/trunk@29109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4bcf60c885
commit
187e23b3d6
|
@ -589,13 +589,6 @@
|
||||||
return;
|
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 ) {
|
$.each( data.activeControls, function ( id, active ) {
|
||||||
var control = api.control( id );
|
var control = api.control( id );
|
||||||
if ( control ) {
|
if ( control ) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.0-beta2-20140729';
|
$wp_version = '4.0-beta2-20140730';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue