Typecast to int the return of image_resize_dimensions(), fixes #7748

git-svn-id: https://develop.svn.wordpress.org/trunk@12381 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-12-12 08:06:24 +00:00
parent a01165cf53
commit 35ded05d09
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ function image_resize_dimensions($orig_w, $orig_h, $dest_w, $dest_h, $crop = fal
// the return array matches the parameters to imagecopyresampled()
// int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h
return array( 0, 0, $s_x, $s_y, $new_w, $new_h, $crop_w, $crop_h );
return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h );
}