From: Steve Sutton Date: Mon, 1 Feb 2016 21:31:48 +0000 (-0500) Subject: Update version number for js file X-Git-Tag: v1.0.0^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=83111b96f6ec2147d44c8df6db18851fdff5e239;p=WP-Themes%2Fotsego.git Update version number for js file --- 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 ); ?>