From 3df56a9360083c040e2d424aa1010e994c786df1 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 12 Nov 2009 05:20:48 +0000 Subject: [PATCH] Fix mimes empty check git-svn-id: http://svn.automattic.com/wordpress/trunk@12171 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 239ef0ea6..664dbcf57 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2260,7 +2260,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; @@ -2340,6 +2340,7 @@ function get_allowed_mime_types() { return $mimes; } + /** * Retrieve nonce action "Are you sure" message. *