forked from mirror/_s
_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:
parent
edf08c67b5
commit
8f40beb65f
|
@ -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 -->
|
||||
|
||||
|
|
Reference in New Issue