Add twentyten_attachment_height filter. props lancewillett, fixes #14402.
git-svn-id: https://develop.svn.wordpress.org/trunk@17305 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fca7f0c9a3
commit
211ed39112
@ -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
Block a user