diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 52c447d996..f20ba84d76 100644
a
|
b
|
function wp_get_default_extension_for_mime_type( $mime_type ) { |
3012 | 3012 | * |
3013 | 3013 | * @since 2.0.4 |
3014 | 3014 | * |
3015 | | * @param string $filename File name or path. |
3016 | | * @param string[] $mimes Optional. Array of allowed mime types keyed by their file extension regex. |
| 3015 | * @param string $filename File name or path. |
| 3016 | * @param array $mimes Optional. Array of allowed mime types keyed by their file extension regex. |
3017 | 3017 | * Defaults to the result of get_allowed_mime_types(). |
3018 | 3018 | * @return array { |
3019 | 3019 | * Values for the extension and mime type. |
… |
… |
function wp_get_default_extension_for_mime_type( $mime_type ) { |
3022 | 3022 | * @type string|false $type File mime type, or false if the file doesn't match a mime type. |
3023 | 3023 | * } |
3024 | 3024 | */ |
3025 | | function wp_check_filetype( $filename, $mimes = null ) { |
| 3025 | function wp_check_filetype( $filename, $mimes = array() ) { |
3026 | 3026 | if ( empty( $mimes ) ) { |
3027 | 3027 | $mimes = get_allowed_mime_types(); |
3028 | 3028 | } |