script version numbers tied to theme version
This commit is contained in:
parent
21071c342e
commit
1804b460e8
2 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,6 @@ require_once get_template_directory() . '/inc/wpcom-colors-css-variables.php';
|
|||
* Bind JS handlers to instantly live-preview changes.
|
||||
*/
|
||||
function hever_wpcom_color_annotations_preview_js() {
|
||||
wp_enqueue_script( 'hever_wpcom_color_annotations_preview', get_template_directory_uri() . '/inc/color-annotations-preview.js', array( 'customize-preview' ), '1.0', true );
|
||||
wp_enqueue_script( 'hever_wpcom_color_annotations_preview', get_template_directory_uri() . '/inc/color-annotations-preview.js', array( 'customize-preview' ), wp_get_theme()->get( 'Version' ), true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'hever_wpcom_color_annotations_preview_js' );
|
|
@ -293,7 +293,7 @@ function varia_scripts() {
|
|||
'ie11-fix',
|
||||
get_template_directory_uri() . '/js/ie11-fix.js',
|
||||
array( 'css-vars-ponyfill' ),
|
||||
'1.0'
|
||||
wp_get_theme()->get( 'Version' )
|
||||
);
|
||||
wp_enqueue_style( 'varia-ie-styles', get_template_directory_uri() . '/ie.css', array(), wp_get_theme()->get( 'Version' ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue