Skip to content

Commit

Permalink
image_make_intermediate_size filter from tellyworth. fixes #6580 for 2.5
Browse files Browse the repository at this point in the history
git-svn-id: https://develop.svn.wordpress.org/branches/2.5@7702 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ryanboren committed Apr 16, 2008
1 parent e78776f commit 9153ead
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wp-includes/media.php
Expand Up @@ -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],
Expand Down

0 comments on commit 9153ead

Please sign in to comment.