From e07bea12f872a3a73bcaaa6742f592f8f67ebe0d Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 12 Dec 2009 08:06:24 +0000 Subject: [PATCH] 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 --- wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 84533d2ca..f93317707 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -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 ); }