[wp-trac] [WordPress Trac] #21483: Refactor Customizer Upload, Image, and Background Image controls to leverage the media library/modal
WordPress Trac
noreply at wordpress.org
Mon Feb 2 06:13:42 UTC 2026
#21483: Refactor Customizer Upload, Image, and Background Image controls to
leverage the media library/modal
----------------------------+-----------------------------
Reporter: jjonesftw | Owner: (none)
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 4.1
Component: Customize | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: ui, javascript
----------------------------+-----------------------------
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/21483#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list