Changeset 50810 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 05/04/2021 02:43:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r50152 r50810 439 439 } 440 440 441 $supported_types = array( 'image/jpeg', 'image/png', 'image/gif' );441 $supported_types = array( 'image/jpeg', 'image/png', 'image/gif', 'image/webp' ); 442 442 $mime_type = get_post_mime_type( $attachment_id ); 443 443 if ( ! in_array( $mime_type, $supported_types, true ) ) {
Note: See TracChangeset
for help on using the changeset viewer.