Changeset 58849 for trunk/src/wp-admin/includes/image.php
- Timestamp:
- 08/05/2024 04:11:40 AM (20 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/image.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r57755 r58849 544 544 * @since 2.1.0 545 545 * @since 6.0.0 The `$filesize` value was added to the returned array. 546 * @since 6.7.0 The 'image/heic' mime type is supported. 546 547 * 547 548 * @param int $attachment_id Attachment ID to process. … … 556 557 $mime_type = get_post_mime_type( $attachment ); 557 558 558 if ( preg_match( '!^image/!', $mime_type ) && file_is_displayable_image( $file) ) {559 if ( 'image/heic' === $mime_type || ( preg_match( '!^image/!', $mime_type ) && file_is_displayable_image( $file ) ) ) { 559 560 // Make thumbnails and other intermediate sizes. 560 561 $metadata = wp_create_image_subsizes( $file, $attachment_id );
Note: See TracChangeset
for help on using the changeset viewer.