_s: Use the_title_attrinute() when we don't need to specify a post.

See #188, closes #184.
This commit is contained in:
obenland 2013-03-26 12:00:34 -07:00
parent 6752ef06a5
commit 9af47bab03
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ get_header();
} }
?> ?>
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( strip_tags( get_the_title() ) ); ?>" rel="attachment"><?php <a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
$attachment_size = apply_filters( '_s_attachment_size', array( 1200, 1200 ) ); // Filterable image size. $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( $post->ID, $attachment_size );
?></a> ?></a>