From 3b95476f1cf3dd8c15c934ef4cdc5d718bff30de Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 16 Apr 2008 21:59:23 +0000 Subject: [PATCH] image_make_intermediate_size filter from tellyworth. fixes #6580 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@7703 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/media.php b/wp-includes/media.php index 49c9ac01a..e62be3666 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -244,6 +244,7 @@ function image_make_intermediate_size($file, $width, $height, $crop=false) { if ( $width || $height ) { $resized_file = image_resize($file, $width, $height, $crop); if ( !is_wp_error($resized_file) && $resized_file && $info = getimagesize($resized_file) ) { + $resized_file = apply_filters('image_make_intermediate_size', $resized_file); return array( 'file' => basename( $resized_file ), 'width' => $info[0],