diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php
index 3cfa0c7..33c167c 100644
|
a
|
b
|
do_action( 'customize_controls_print_scripts' );
|
| 228 | 228 | |
| 229 | 229 | // Prepare customizer settings to pass to Javascript. |
| 230 | 230 | $settings = array( |
| | 231 | 'isDefaultCustomizerInstance' => true, |
| 231 | 232 | 'theme' => array( |
| 232 | 233 | 'stylesheet' => $wp_customize->get_stylesheet(), |
| 233 | 234 | 'active' => $wp_customize->is_theme_active(), |
diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js
index 85b171d..919309b 100644
|
a
|
b
|
|
| 980 | 980 | header: api.HeaderControl |
| 981 | 981 | }; |
| 982 | 982 | |
| 983 | | $( function() { |
| | 983 | /** |
| | 984 | * Bootstraps the default customizer instance (on customize.php). |
| | 985 | */ |
| | 986 | var bootstrapDefaultCustomizerInstance = function() { |
| 984 | 987 | api.settings = window._wpCustomizeSettings; |
| 985 | 988 | api.l10n = window._wpCustomizeControlsL10n; |
| 986 | 989 | |
| … |
… |
|
| 988 | 991 | if ( ! api.settings ) |
| 989 | 992 | return; |
| 990 | 993 | |
| | 994 | if ( ! api.settings.isDefaultCustomizerInstance ) |
| | 995 | return; |
| | 996 | |
| 991 | 997 | // Redirect to the fallback preview if any incompatibilities are found. |
| 992 | 998 | if ( ! $.support.postMessage || ( ! $.support.cors && api.settings.isCrossDomain ) ) |
| 993 | 999 | return window.location = api.settings.url.fallback; |
| … |
… |
|
| 1299 | 1305 | setTimeout(function () { |
| 1300 | 1306 | topFocus.focus(); |
| 1301 | 1307 | }, 200); |
| | 1308 | }; |
| 1302 | 1309 | |
| 1303 | | }); |
| | 1310 | $( bootstrapDefaultCustomizerInstance ); |
| 1304 | 1311 | |
| 1305 | | })( wp, jQuery ); |
| | 1312 | })( wp, jQuery ); |
| | 1313 | No newline at end of file |