From fc4fffaad53d1192987347cb7582102f4d5dabb7 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 9 Aug 2012 18:21:58 +0000 Subject: [PATCH] Twenty Ten and Eleven: *_continue_reading_link() should be pluggable, fixes #16500. Props nacin and SergeyBiryukov. git-svn-id: https://develop.svn.wordpress.org/trunk@21490 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyeleven/functions.php | 2 ++ wp-content/themes/twentyten/functions.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 299439bf67..c3dd73d32a 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -337,12 +337,14 @@ function twentyeleven_excerpt_length( $length ) { } add_filter( 'excerpt_length', 'twentyeleven_excerpt_length' ); +if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) : /** * Returns a "Continue Reading" link for excerpts */ function twentyeleven_continue_reading_link() { return ' ' . __( 'Continue reading ', 'twentyeleven' ) . ''; } +endif; // twentyeleven_continue_reading_link /** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link(). diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index f5bea95c96..35d6563d13 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -243,6 +243,7 @@ function twentyten_excerpt_length( $length ) { } add_filter( 'excerpt_length', 'twentyten_excerpt_length' ); +if ( ! function_exists( 'twentyten_continue_reading_link' ) ) : /** * Returns a "Continue Reading" link for excerpts * @@ -252,6 +253,7 @@ add_filter( 'excerpt_length', 'twentyten_excerpt_length' ); function twentyten_continue_reading_link() { return ' ' . __( 'Continue reading ', 'twentyten' ) . ''; } +endif; /** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().