Skip to content

Commit

Permalink
Media: check for wav mime type using isset (WordPress#66947)
Browse files Browse the repository at this point in the history
* Add missing isset. Sorry!

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: andrewserong <[email protected]>
  • Loading branch information
3 people authored Nov 12, 2024
1 parent 074dc52 commit 0a5e54a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backport-changelog/6.8/7265.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/7265

* https://github.com/WordPress/gutenberg/pull/66850
* https://github.com/WordPress/gutenberg/pull/66947
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.8/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function gutenberg_get_mime_types_6_8( $mime_types ) {
* Only add support if there is existing support for 'wav'.
* Some plugins may have deliberately disabled it.
*/
if ( ! $mime_types['wav'] && ! isset( $mime_types['wav|x-wav'] ) ) {
if ( ! isset( $mime_types['wav'] ) && ! isset( $mime_types['wav|x-wav'] ) ) {
return $mime_types;
}
/*
Expand Down

0 comments on commit 0a5e54a

Please sign in to comment.