Skip to content

Commit

Permalink
Adding theme ver to script load for cachheing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamigibbs committed Nov 21, 2016
1 parent d4c1660 commit e8cf580
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,14 @@ function scribe_widgets_init() {
* Enqueue scripts.
*/
function scribe_scripts() {


/**
* Get the theme's version number for cache busting
*/
$scribe_theme = wp_get_theme();

wp_enqueue_script( 'scribe-foundation-core', get_template_directory_uri() . '/vendor/foundation/foundation.js', array('jquery'), '6.2.2', false);
wp_enqueue_script( 'scribe-app', get_template_directory_uri() . '/js/app.js', array('jquery'), '1.0.0', true);
wp_enqueue_script( 'scribe-app', get_template_directory_uri() . '/js/app.js', array('jquery'), $scribe_theme['Version'], true);
wp_enqueue_script( 'scribe-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true );


Expand Down

0 comments on commit e8cf580

Please sign in to comment.