From 74e451cfe317936849f81beee48fae9b18333953 Mon Sep 17 00:00:00 2001 From: MickeyKay Date: Mon, 21 Apr 2014 15:54:49 -0700 Subject: [PATCH] Added proper CHILD_THEME_VERSION constant for enqueueud JS in place of manually 1.0.0 --- lib/functions/theme-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/theme-functions.php b/lib/functions/theme-functions.php index 8d9607c..b9494f1 100644 --- a/lib/functions/theme-functions.php +++ b/lib/functions/theme-functions.php @@ -23,7 +23,7 @@ function trestle_header_actions() { wp_enqueue_style( 'theme-google-fonts', '//fonts.googleapis.com/css?family=Lato:300,400,700' ); // Theme jQuery - wp_enqueue_script( 'theme-jquery', get_stylesheet_directory_uri() . '/lib/js/theme-jquery.js', array( 'jquery' ), '1.0.0', true ); + wp_enqueue_script( 'theme-jquery', get_stylesheet_directory_uri() . '/lib/js/theme-jquery.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); // Custom CSS (if it exists) $custom_css_file = 'wp-content/uploads/trestle/custom.css'; @@ -33,7 +33,7 @@ function trestle_header_actions() { // Custom jQuery (if it exists) $custom_js_file = 'wp-content/uploads/trestle/custom.js'; if ( is_readable( ABSPATH . $custom_js_file ) ) - wp_enqueue_script( 'trestle-custom-jquery', '/' . $custom_js_file, array( 'jquery' ), '1.0.0', true ); + wp_enqueue_script( 'trestle-custom-jquery', '/' . $custom_js_file, array( 'jquery' ), CHILD_THEME_VERSION, true ); // Pass PHP variables to theme jQuery $php_vars = array (