From 338a869b8f3176d28c328c96b9a38dfd9d3c329d Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@15120 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 5cde25435..3cfbb62ca 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;