Make WordPress Core


Ignore:
Timestamp:
02/05/2008 06:47:27 AM (16 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/image.php

    r6579 r6726  
    2222
    2323    $image = wp_load_image( $file );
    24    
     24
    2525    if ( !is_resource( $image ) )
    2626        return $image;
     
    4040        imagesavealpha( $thumbnail, true);
    4141    }
    42    
     42
    4343    @ imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $sourceImageWidth, $sourceImageHeight );
    4444
    45     imagedestroy( $image ); // Free up memory 
     45    imagedestroy( $image ); // Free up memory
    4646
    4747    // If no filters change the filename, we'll do a default transformation.
     
    6868    }
    6969
    70     imagedestroy( $thumbnail ); // Free up memory 
    71    
    72     // Set correct file permissions 
    73     $stat = stat( dirname( $thumbpath )); 
     70    imagedestroy( $thumbnail ); // Free up memory
     71
     72    // Set correct file permissions
     73    $stat = stat( dirname( $thumbpath ));
    7474    $perms = $stat['mode'] & 0000666; //same permissions as parent folder, strip off the executable bits
    75     @ chmod( $thumbpath, $perms ); 
     75    @ chmod( $thumbpath, $perms );
    7676
    7777    return apply_filters( 'wp_create_thumbnail', $thumbpath );
     
    115115
    116116    imagecopyresampled( $dst, $src, 0, 0, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h );
    117    
    118     imagedestroy( $src ); // Free up memory 
     117
     118    imagedestroy( $src ); // Free up memory
    119119
    120120    if ( ! $dst_file )
     
    160160                $metadata['thumb'] = basename($thumb);
    161161        }
    162        
     162
    163163        // fetch additional metadata from exif/iptc
    164164        $image_meta = wp_read_image_metadata( $file );
Note: See TracChangeset for help on using the changeset viewer.