5VKR41MQaEWziyZ9m70n2e changeset

Changeset386333636366 (b)
ParentNone (a)
ab
0+if ( ! function_exists( 'boilerplate_custom_excerpt_more' ) ) :
0+        /**
0+         * Adds a pretty "Continue Reading" link to custom post excerpts.
0+         *
0+         * To override this link in a child theme, remove the filter and add your own
0+         * function tied to the get_the_excerpt filter hook.
0+         *
0+         * @since Twenty Ten 1.0
0+         * @return string Excerpt with a pretty "Continue Reading" link
0+         */
0+       
0+        function boilerplate_custom_excerpt_more( $output ) {
0+                if ( has_excerpt() && ! is_attachment() ) {
0+                        $output .= boilerplate_continue_reading_link();
0+                }
0+                return $output;
0+        }
0+
0+endif;
0+add_filter( 'get_the_excerpt', 'boilerplate_custom_excerpt_more' );
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- Revision None
+++ Revision 386333636366
@@ -0,0 +1,20 @@
+if ( ! function_exists( 'boilerplate_custom_excerpt_more' ) ) :
+ /**
+ * Adds a pretty "Continue Reading" link to custom post excerpts.
+ *
+ * To override this link in a child theme, remove the filter and add your own
+ * function tied to the get_the_excerpt filter hook.
+ *
+ * @since Twenty Ten 1.0
+ * @return string Excerpt with a pretty "Continue Reading" link
+ */
+
+ function boilerplate_custom_excerpt_more( $output ) {
+ if ( has_excerpt() && ! is_attachment() ) {
+ $output .= boilerplate_continue_reading_link();
+ }
+ return $output;
+ }
+
+endif;
+add_filter( 'get_the_excerpt', 'boilerplate_custom_excerpt_more' );