image_make_intermediate_size filter from tellyworth. fixes #6580 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@7703 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-16 21:59:23 +00:00
parent 357304b1ce
commit c3502e11bf
1 changed files with 1 additions and 0 deletions

View File

@ -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],