Mime Types: support uploading wav files in Firefox
When uploading `wav` files in the editor, Chrome and other browsers identify the mime type of the file as `audio/wav`. Firefox, however, identifies the mime type as `audio/x-wav`. This commit updates the `'wav'` mime type key in `wp_get_mime_types()` to support `x-wav` so that uploading wav files work in Firefox. Previously, the editor reported an unsupported mime type error. Props imranh920, ramonopoly. Fixes #61948. Built from https://develop.svn.wordpress.org/trunk@59389 git-svn-id: http://core.svn.wordpress.org/trunk@58775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
417fb21204
commit
3712752f76
|
@ -3417,6 +3417,7 @@ function wp_get_image_mime( $file ) {
|
|||
* @since 4.2.0 Support was added for GIMP (.xcf) files.
|
||||
* @since 4.9.2 Support was added for Flac (.flac) files.
|
||||
* @since 4.9.6 Support was added for AAC (.aac) files.
|
||||
* @since 6.8.0 Support was added for `audio/x-wav`.
|
||||
*
|
||||
* @return string[] Array of mime types keyed by the file extension regex corresponding to those types.
|
||||
*/
|
||||
|
@ -3481,7 +3482,7 @@ function wp_get_mime_types() {
|
|||
'mp3|m4a|m4b' => 'audio/mpeg',
|
||||
'aac' => 'audio/aac',
|
||||
'ra|ram' => 'audio/x-realaudio',
|
||||
'wav' => 'audio/wav',
|
||||
'wav|x-wav' => 'audio/wav',
|
||||
'ogg|oga' => 'audio/ogg',
|
||||
'flac' => 'audio/flac',
|
||||
'mid|midi' => 'audio/midi',
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59388';
|
||||
$wp_version = '6.8-alpha-59389';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue