Make WordPress Core

Changeset 29329


Ignore:
Timestamp:
07/30/2014 04:23:47 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Customizer: Don't hide controls the preview frame has no information about.

props kovshenin.
see #27993.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r29051 r29329  
    589589                    return;
    590590                }
    591 
    592                 // Any controls not even registered on the previewed URL are not active either
    593                 api.control.each( function ( control ) {
    594                     if ( typeof data.activeControls[ control.id ] === 'undefined' ) {
    595                         data.activeControls[ control.id ] = false;
    596                     }
    597                 } );
    598591
    599592                $.each( data.activeControls, function ( id, active ) {
Note: See TracChangeset for help on using the changeset viewer.