From 73b17f9ef086619200fea6dfa999f050b6521455 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 15 Jan 2011 01:12:00 +0000 Subject: [PATCH] Add twentyten_attachment_height filter. props lancewillett, fixes #14402. git-svn-id: http://svn.automattic.com/wordpress/trunk@17305 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 3ebef0ee3..20794fba0 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. ?>