Update version number for js file
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 1 Feb 2016 21:31:48 +0000 (16:31 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 1 Feb 2016 21:34:53 +0000 (16:34 -0500)
functions.php

index 7b48a1b..f262840 100644 (file)
@@ -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 );
 ?>