Changeset 60703 for trunk/src/wp-admin/includes/image-edit.php
- Timestamp:
- 09/03/2025 12:16:17 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/image-edit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r60640 r60703 546 546 547 547 if ( is_gd_image( $rotated ) ) { 548 imagedestroy( $img ); 548 if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0. 549 imagedestroy( $img ); 550 } 551 549 552 $img = $rotated; 550 553 } … … 581 584 582 585 if ( imagecopyresampled( $dst, $img, 0, 0, $sx, $sy, $w, $h, $sw, $sh ) ) { 583 imagedestroy( $img ); 586 if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0. 587 imagedestroy( $img ); 588 } 589 584 590 $img = $dst; 585 591 } … … 607 613 if ( is_gd_image( $dst ) ) { 608 614 if ( imagecopy( $dst, $img, 0, 0, $x, $y, $w, $h ) ) { 609 imagedestroy( $img ); 615 if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0. 616 imagedestroy( $img ); 617 } 618 610 619 $img = $dst; 611 620 }
Note: See TracChangeset
for help on using the changeset viewer.