Changeset 57524 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 02/02/2024 05:46:50 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r57380 r57524 457 457 } 458 458 459 $supported_types = array( 'image/jpeg', 'image/png', 'image/gif', 'image/webp' );459 $supported_types = array( 'image/jpeg', 'image/png', 'image/gif', 'image/webp', 'image/avif' ); 460 460 $mime_type = get_post_mime_type( $attachment_id ); 461 461 if ( ! in_array( $mime_type, $supported_types, true ) ) {
Note: See TracChangeset
for help on using the changeset viewer.