From 19471ad3abe7ad44eaa7db82117361ff7cbb996c Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 21 Dec 2007 09:23:59 +0000 Subject: [PATCH] Fix funky formatting git-svn-id: http://svn.automattic.com/wordpress/trunk@6454 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/image.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 7bcd38ee84..5542473e77 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -35,10 +35,10 @@ function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { $thumbnail = imagecreatetruecolor( $image_new_width, $image_new_height); // preserve PNG transparency - if( IMAGETYPE_PNG == $sourceImageType && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' )) { - imagealphablending($thumbnail, false); - imagesavealpha($thumbnail,true); - } + if ( IMAGETYPE_PNG == $sourceImageType && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) { + imagealphablending( $thumbnail, false); + imagesavealpha( $thumbnail, true); + } @ imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $sourceImageWidth, $sourceImageHeight );