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
This commit is contained in:
Andrew Nacin 2010-06-02 22:41:14 +00:00
parent b86872f25f
commit b49f04cea3
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 * @return string Excerpt with a pretty "Continue Reading" link
*/ */
function twentyten_custom_excerpt_more( $output ) { function twentyten_custom_excerpt_more( $output ) {
if ( has_excerpt() ) { if ( has_excerpt() && ! is_attachment() ) {
$output .= twentyten_continue_reading_link(); $output .= twentyten_continue_reading_link();
} }
return $output; return $output;