This commit is contained in:
Ben Word
2015-12-26 17:23:35 -06:00
parent fa0e51faa4
commit 67c190fc41
8 changed files with 26 additions and 20 deletions

View File

@@ -1,9 +1,10 @@
<?php namespace App;
/**
* Add postMessage support
* Theme customizer
*/
add_action('customize_register', function (\WP_Customize_Manager $wp_customize) {
// Add postMessage support
$wp_customize->get_setting('blogname')->transport = 'postMessage';
});
@@ -11,5 +12,5 @@ add_action('customize_register', function (\WP_Customize_Manager $wp_customize)
* Customizer JS
*/
add_action('customize_preview_init', function () {
wp_enqueue_script('sage/customizer', asset_path('scripts/customizer.js'), ['customize-preview'], null, true);
wp_enqueue_script('sage/customizer.js', asset_path('scripts/customizer.js'), ['customize-preview'], null, true);
});