From 83111b96f6ec2147d44c8df6db18851fdff5e239 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 1 Feb 2016 16:31:48 -0500 Subject: [PATCH] Update version number for js file --- functions.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/functions.php b/functions.php index 7b48a1b..f262840 100644 --- a/functions.php +++ b/functions.php @@ -62,7 +62,7 @@ function glm_site_scripts() 'glm_foundation', get_template_directory_uri() . '/js/app.js', 'jquery', - '1.0', + '1.1', true ); wp_enqueue_script('jquery-ui-datepicker'); @@ -167,15 +167,15 @@ function glm_has_shortcode($shortcode) $page = get_post( $post->ID ); return has_shortcode( $page->post_content, $shortcode ); } -function ca_only_add_more_when_required( $default, $text, $options ) { - $text = strip_tags( $text ); - if ( 'words' === $options['length_type'] ) { - $excerpt_length = str_word_count( $text ); - } else { - $excerpt_length = strlen( $text ); - } - if ( $excerpt_length > $options['length'] ) return $default; - return true; -} +function ca_only_add_more_when_required( $default, $text, $options ) { + $text = strip_tags( $text ); + if ( 'words' === $options['length_type'] ) { + $excerpt_length = str_word_count( $text ); + } else { + $excerpt_length = strlen( $text ); + } + if ( $excerpt_length > $options['length'] ) return $default; + return true; +} add_filter( 'advanced_excerpt_disable_add_more', 'ca_only_add_more_when_required', 10, 3 ); ?> -- 2.17.1