From 211ed39112805db16e4f393b2afec22b8a344c8a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 15 Jan 2011 01:12:00 +0000 Subject: [PATCH] Add twentyten_attachment_height filter. props lancewillett, fixes #14402. git-svn-id: https://develop.svn.wordpress.org/trunk@17305 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/loop-attachment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyten/loop-attachment.php b/wp-content/themes/twentyten/loop-attachment.php index 3ebef0ee3c..20794fba09 100644 --- a/wp-content/themes/twentyten/loop-attachment.php +++ b/wp-content/themes/twentyten/loop-attachment.php @@ -86,8 +86,9 @@ } ?>

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. ?>