[wp-trac] [WordPress Trac] #64557: WP_Customize_Media_Control default webp
WordPress Trac
noreply at wordpress.org
Thu Jan 29 20:03:16 UTC 2026
#64557: WP_Customize_Media_Control default webp
--------------------------+--------------------------
Reporter: buutqn | Owner: westonruter
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 7.0
Component: Customize | Version: 6.9
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by westonruter):
* owner: (none) => westonruter
* status: new => reviewing
* milestone: Awaiting Review => 7.0
Comment:
Good catch. This certainly can be made more robust.
The use of `substr()` was introduced in r30309
([https://github.com/WordPress/wordpress-
develop/commit/4175d8a9229504fe4763f486bcf533b6cb18bc9a 4175d8a]). But the
actual issue was introduced in r50810 (for #35725) to add WebP support and
similarly in r57524 (for #51228) to add AVIF support, as these two file
formats use 4-character file file extensions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64557#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list