Skip to content

Commit 0a5e54a

Browse files
Media: check for wav mime type using isset (#66947)
* Add missing isset. Sorry! Co-authored-by: ramonjd <[email protected]> Co-authored-by: andrewserong <[email protected]>
1 parent 074dc52 commit 0a5e54a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

backport-changelog/6.8/7265.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
https://github.com/WordPress/wordpress-develop/pull/7265
22

33
* https://github.com/WordPress/gutenberg/pull/66850
4+
* https://github.com/WordPress/gutenberg/pull/66947

lib/compat/wordpress-6.8/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function gutenberg_get_mime_types_6_8( $mime_types ) {
1818
* Only add support if there is existing support for 'wav'.
1919
* Some plugins may have deliberately disabled it.
2020
*/
21-
if ( ! $mime_types['wav'] && ! isset( $mime_types['wav|x-wav'] ) ) {
21+
if ( ! isset( $mime_types['wav'] ) && ! isset( $mime_types['wav|x-wav'] ) ) {
2222
return $mime_types;
2323
}
2424
/*

0 commit comments

Comments
 (0)