From 8f40beb65f359c7216d24d1082354fcffe31a9d4 Mon Sep 17 00:00:00 2001 From: Michael Fields Date: Mon, 23 Apr 2012 21:13:47 +0000 Subject: [PATCH] _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 --- image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image.php b/image.php index 6b2dbd86..9f0da9c7 100644 --- a/image.php +++ b/image.php @@ -70,8 +70,8 @@ get_header(); ?> 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 ); ?>