_s: Better image filtering for self-hosted users. fixes #1216

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9481 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Michael Fields 2012-04-23 21:13:47 +00:00 committed by Ian Stewart
parent c82269d831
commit bd4719e73f
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ get_header();
?>
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
$attachment_size = apply_filters( '_s_attachment_size', 1200 );
echo wp_get_attachment_image( $post->ID, array( $attachment_size, $attachment_size ) ); // filterable image width with, essentially, no limit for image height.
$attachment_size = apply_filters( '_s_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
?></a>
</div><!-- .attachment -->