mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 13:41:24 +01:00
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:
parent
2f3eca5f4a
commit
338a869b8f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user