From b49f04cea3cd9e1f6b9dac7205dc835fa93626bb Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 2 Jun 2010 22:41:14 +0000 Subject: [PATCH] Don't show 'Continue reading' in Twenty Ten on attachment pages. props iandstewart, fixes #13361. git-svn-id: https://develop.svn.wordpress.org/trunk@15120 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 5cde254350..3cfbb62ca6 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -282,7 +282,7 @@ add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); * @return string Excerpt with a pretty "Continue Reading" link */ function twentyten_custom_excerpt_more( $output ) { - if ( has_excerpt() ) { + if ( has_excerpt() && ! is_attachment() ) { $output .= twentyten_continue_reading_link(); } return $output;