diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a26cc3a4e273..361211b552b7 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2226,7 +2226,7 @@ function wp_ext2type( $ext ) { * @return array Values with extension first and mime type. */ function wp_check_filetype( $filename, $mimes = null ) { - if ( null === $mimes ) + if ( empty($mimes) ) $mimes = get_allowed_mime_types(); $type = false; $ext = false; @@ -2306,6 +2306,7 @@ function get_allowed_mime_types() { return $mimes; } + /** * Retrieve nonce action "Are you sure" message. *