Changeset 31040 for trunk/src/wp-includes/class-wp-image-editor-gd.php
- Timestamp:
- 01/03/2015 10:01:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-gd.php
r30681 r31040 307 307 public function rotate( $angle ) { 308 308 if ( function_exists('imagerotate') ) { 309 $rotated = imagerotate( $this->image, $angle, 0 ); 309 $transparency = imagecolorallocatealpha( $this->image, 255, 255, 255, 127 ); 310 $rotated = imagerotate( $this->image, $angle, $transparency ); 310 311 311 312 if ( is_resource( $rotated ) ) { 313 imagealphablending( $rotated, true ); 314 imagesavealpha( $rotated, true ); 312 315 imagedestroy( $this->image ); 313 316 $this->image = $rotated;
Note: See TracChangeset
for help on using the changeset viewer.