Add twentyten_attachment_height filter. props lancewillett, fixes #14402.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6b50544ca5
commit
73b17f9ef0
|
@ -86,8 +86,9 @@
|
|||
}
|
||||
?>
|
||||
<p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
|
||||
$attachment_size = apply_filters( 'twentyten_attachment_size', 900 );
|
||||
echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height.
|
||||
$attachment_width = apply_filters( 'twentyten_attachment_size', 900 );
|
||||
$attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
|
||||
echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
|
||||
?></a></p>
|
||||
|
||||
<div id="nav-below" class="navigation">
|
||||
|
|
Loading…
Reference in New Issue