Rename app to src

This commit is contained in:
QWp6t
2015-12-19 16:52:05 -08:00
committed by Ben Word
parent 9283bbbfb3
commit f752470b33
14 changed files with 8 additions and 8 deletions

15
src/admin.php Normal file
View File

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