_s: Better use of template tags in the image template.

This commit is contained in:
obenland 2013-05-20 12:59:09 +02:00
parent ce1bb74ddb
commit 655ee71d60
1 changed files with 3 additions and 3 deletions

View File

@ -76,13 +76,13 @@ get_header();
}
?>
<a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
<a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
$attachment_size = apply_filters( '_s_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
echo wp_get_attachment_image( get_the_ID(), $attachment_size );
?></a>
</div><!-- .attachment -->
<?php if ( ! empty( $post->post_excerpt ) ) : ?>
<?php if ( has_excerpt() ) : ?>
<div class="entry-caption">
<?php the_excerpt(); ?>
</div><!-- .entry-caption -->