#42225 closed enhancement (fixed)
Whitelist Flac Files
Reported by: | blobfolio | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
[Flac](https://en.wikipedia.org/wiki/FLAC) is a popular, lossless audio compression format. It is natively supported by Chrome and Firefox, and support is also due to land in Edge 16. (See: https://caniuse.com/#search=flac)
I do not see any reason to prevent users from uploading media of this type by default.
Attachments (8)
Change History (23)
#2
@
7 years ago
- Milestone changed from Awaiting Review to 4.9.1
This looks good, but unfortunately missed the 4.9 deadline. Let's get this in for 4.9.1.
#3
follow-up:
↓ 4
@
7 years ago
- Keywords 2nd-opinion removed
what do these files look like when used with MediaElement? wp_audio_extensions
filter mainly exists to whitelist ME-capable types
#4
in reply to:
↑ 3
@
7 years ago
Replying to wonderboymusic:
what do these files look like when used with MediaElement?
wp_audio_extensions
filter mainly exists to whitelist ME-capable types
I attached a screenshot. ME.js draws the usual widget. The raw HTML looks like it should too.
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
7 years ago
#7
@
7 years ago
- Keywords needs-unit-tests added
42225.4.diff is looking good to me. It would be nice to update/add unit tests here where it makes sense, otherwise it's ready to go in.
@
7 years ago
Move unit test to "Test a few additional file types on single sites." block; seems more appropriate.
#8
@
7 years ago
- Keywords needs-unit-tests removed
I added a unit test to make sure Flac files get through wp_check_filetype_and_ext()
under default conditions.
Add
flac
to the defaultwp_get_mime_types()
list.