increase version number in enqueue.php
This commit is contained in:
parent
f54acbfd96
commit
a660a7d2f1
|
@ -11,9 +11,9 @@ if ( ! function_exists( 'understrap_scripts' ) ) {
|
||||||
*/
|
*/
|
||||||
function understrap_scripts() {
|
function understrap_scripts() {
|
||||||
wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(),
|
wp_enqueue_style( 'understrap-styles', get_stylesheet_directory_uri() . '/css/theme.min.css', array(),
|
||||||
'0.4.9' );
|
'0.5.0' );
|
||||||
wp_enqueue_script( 'jquery' );
|
wp_enqueue_script( 'jquery' );
|
||||||
wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), '0.4.9',
|
wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . '/js/theme.min.js', array(), '0.5.0',
|
||||||
true );
|
true );
|
||||||
|
|
||||||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||||
|
@ -31,7 +31,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) {
|
||||||
}
|
}
|
||||||
if ( is_page_template( ( 'page-templates/vertical-one-page.php' ) || is_home() || is_single() ) && $loadit ) {
|
if ( is_page_template( ( 'page-templates/vertical-one-page.php' ) || is_home() || is_single() ) && $loadit ) {
|
||||||
wp_enqueue_script( 'vertical-one-page', get_template_directory_uri() . '/js/vertical-one-page.js',
|
wp_enqueue_script( 'vertical-one-page', get_template_directory_uri() . '/js/vertical-one-page.js',
|
||||||
array( 'jquery' ), '0.4.9', true );
|
array( 'jquery' ), '0.5.0', true );
|
||||||
$page_for_posts = strtolower( get_the_title( get_option( 'page_for_posts' ) ) );
|
$page_for_posts = strtolower( get_the_title( get_option( 'page_for_posts' ) ) );
|
||||||
$home_url = home_url();
|
$home_url = home_url();
|
||||||
$is_single = is_single();
|
$is_single = is_single();
|
||||||
|
@ -67,7 +67,7 @@ if ( is_active_sidebar( 'hero' ) ) :
|
||||||
);
|
);
|
||||||
|
|
||||||
wp_enqueue_script( 'understrap-slider-script',
|
wp_enqueue_script( 'understrap-slider-script',
|
||||||
get_stylesheet_directory_uri() . '/js/slider_settings.js', array(), '0.4.9' );
|
get_stylesheet_directory_uri() . '/js/slider_settings.js', array(), '0.5.0' );
|
||||||
wp_localize_script( 'understrap-slider-script', 'understrap_slider_variables', $data );
|
wp_localize_script( 'understrap-slider-script', 'understrap_slider_variables', $data );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue