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
This commit is contained in:
nacin 2010-06-02 22:41:14 +00:00
parent 2f3eca5f4a
commit 338a869b8f
1 changed files with 1 additions and 1 deletions

View File

@ -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;