Use _S_VERSION constant when enqueuing customizer.js (#1445)
This commit is contained in:
parent
6d8fe12427
commit
9c9483c821
1 changed files with 1 additions and 1 deletions
|
@ -56,6 +56,6 @@ function _s_customize_partial_blogdescription() {
|
||||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||||
*/
|
*/
|
||||||
function _s_customize_preview_js() {
|
function _s_customize_preview_js() {
|
||||||
wp_enqueue_script( '_s-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );
|
wp_enqueue_script( '_s-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), _S_VERSION, true );
|
||||||
}
|
}
|
||||||
add_action( 'customize_preview_init', '_s_customize_preview_js' );
|
add_action( 'customize_preview_init', '_s_customize_preview_js' );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue