diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 08f19287af..506fa56b95 100644
|
a
|
b
|
function wp_ext2type( $ext ) { |
| 3006 | 3006 | |
| 3007 | 3007 | /** |
| 3008 | 3008 | * Returns first matched extension for the mime-type, |
| 3009 | | * as mapped from wp_get_mime_types(). |
| | 3009 | * as mapped from get_allowed_mime_types(). |
| 3010 | 3010 | * |
| 3011 | 3011 | * @since 5.8.1 |
| 3012 | 3012 | * |
| … |
… |
function wp_ext2type( $ext ) { |
| 3015 | 3015 | * @return string|false |
| 3016 | 3016 | */ |
| 3017 | 3017 | function wp_get_default_extension_for_mime_type( $mime_type ) { |
| 3018 | | $extensions = explode( '|', array_search( $mime_type, wp_get_mime_types(), true ) ); |
| | 3018 | $extensions = explode( '|', array_search( $mime_type, get_allowed_mime_types(), true ) ); |
| 3019 | 3019 | |
| 3020 | 3020 | if ( empty( $extensions[0] ) ) { |
| 3021 | 3021 | return false; |