diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
index 7efee3d..9a11b24 100644
|
|
|
2 | 2 | |
3 | 3 | wp.customize.selectiveRefresh = ( function( $, api ) { |
4 | 4 | 'use strict'; |
5 | | var self, Partial, Placement; |
| 5 | var self, Partial, Placement, active = false; |
6 | 6 | |
7 | 7 | self = { |
8 | 8 | ready: $.Deferred(), |
… |
… |
wp.customize.selectiveRefresh = ( function( $, api ) { |
779 | 779 | */ |
780 | 780 | handleSettingChange = function( newValue, oldValue ) { |
781 | 781 | var setting = this; |
| 782 | if ( ! active ) { |
| 783 | return; |
| 784 | } |
782 | 785 | self.partial.each( function( partial ) { |
783 | 786 | if ( partial.isRelatedSetting( setting, newValue, oldValue ) ) { |
784 | 787 | partial.refresh(); |
… |
… |
wp.customize.selectiveRefresh = ( function( $, api ) { |
848 | 851 | } ); |
849 | 852 | |
850 | 853 | api.preview.bind( 'active', function() { |
| 854 | active = true; |
851 | 855 | |
852 | 856 | // Make all partials ready. |
853 | 857 | self.partial.each( function( partial ) { |