[wp-trac] [WordPress Trac] #51228: Include support for the AVIF image format
WordPress Trac
noreply at wordpress.org
Mon Feb 2 06:13:43 UTC 2026
#51228: Include support for the AVIF image format
-------------------------------------+-------------------------------------
Reporter: lukefiretoss | Owner: adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit- | Focuses: performance,
tests commit has-test-info add- | sustainability
to-field-guide has-dev-note |
-------------------------------------+-------------------------------------
Comment (by westonruter):
In [changeset:"61576" 61576]:
{{{
#!CommitTicketReference repository="" revision="61576"
Customize: Use `wp_check_filetype()` instead of `substr()` to extract file
extension.
This fixes compatibility with image files that have 4-character
extensions, such as `.webp` and `.avif`.
Follow-up to [57524], [50810], [30309].
Props buutqn, westonruter.
See #51228, #35725, #21483.
Fixes #64557.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51228#comment:95>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list