Changeset 48798 for trunk/src/wp-includes/media.php
- Timestamp:
- 08/16/2020 01:31:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r48782 r48798 3460 3460 * 3461 3461 * @param int $width Image width in pixels. 3462 * @param int $height Image height in pixels. .3463 * @return resource The GD image resource.3462 * @param int $height Image height in pixels. 3463 * @return resource|GdImage The GD image resource or GdImage instance. 3464 3464 */ 3465 3465 function wp_imagecreatetruecolor( $width, $height ) { 3466 3466 $img = imagecreatetruecolor( $width, $height ); 3467 if ( is_resource( $img ) && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) { 3467 3468 if ( is_gd_image( $img ) 3469 && function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) 3470 ) { 3468 3471 imagealphablending( $img, false ); 3469 3472 imagesavealpha( $img, true ); 3470 3473 } 3474 3471 3475 return $img; 3472 3476 }
Note: See TracChangeset
for help on using the changeset viewer.