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

git-svn-id: http://svn.automattic.com/wordpress/trunk@12381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-12-12 08:06:24 +00:00
parent 4cee15f1be
commit e07bea12f8
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 );
}