From f198d41f1bb08d7565721bf55635f989f56c6cd0 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 21 Dec 2007 09:23:59 +0000 Subject: [PATCH] Fix funky formatting git-svn-id: https://develop.svn.wordpress.org/trunk@6454 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );