#59686 closed enhancement (duplicate)
AVIF support to media view isAttachment check
Reported by: | grandplugins | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 6.4 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
include 'avif' mime type in the isImageAttachment function in media-view.js
https://github.com/WordPress/WordPress/blob/master/wp-includes/js/media-views.js#L1452
Absence of avif mime type results of changing the default "Link To" field value in ATTACHMENT DISPLAY SETTINGS from None to Media File
Change History (3)
#1
@
12 months ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
#2
@
12 months ago
There is no need to wait for Microsoft. Modifying the media-view.js file would solve a problem with plugins that help upload AVIFs:
A first image is uploaded
Attachment Display Settings. Link To –> selected the option “None”
A second image is uploaded
Attachment Display Settings. Link To –> automatically switches to “Media File”. It should not change. It should be the option selected in the previous image uploaded. In the example — > “None”.
Note: The problem only occurs when uploading an AVIF image.
Duplicate of #51228.
Hi @grandplugins - thanks for the ticket.
This looks like a duplicate of https://core.trac.wordpress.org/ticket/51228 which is about adding AVIF support to core. This ticket is on hold until Microsoft Edge ships support for AVIF in stable.
Closing as a duplicate, feel free to re-open if I have missed something.