[wp-trac] [WordPress Trac] #35725: Add WebP support.
WordPress Trac
noreply at wordpress.org
Mon Feb 2 06:13:43 UTC 2026
#35725: Add WebP support.
-------------------------------------------------+-------------------------
Reporter: markoheijnen | Owner:
| adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.8
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing has-unit- | Focuses:
tests 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/35725#comment:202>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list