Changeset 57524 for trunk/src/wp-admin/includes/image-edit.php
- Timestamp:
- 02/02/2024 05:46:50 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/image-edit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r56653 r57524 391 391 } 392 392 return false; 393 case 'image/avif': 394 if ( function_exists( 'imageavif' ) ) { 395 header( 'Content-Type: image/avif' ); 396 return imageavif( $image, null, 90 ); 397 } 398 return false; 393 399 default: 394 400 return false; … … 493 499 if ( function_exists( 'imagewebp' ) ) { 494 500 return imagewebp( $image, $filename ); 501 } 502 return false; 503 case 'image/avif': 504 if ( function_exists( 'imageavif' ) ) { 505 return imageavif( $image, $filename ); 495 506 } 496 507 return false;
Note: See TracChangeset
for help on using the changeset viewer.