Fix mimes empty check

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@12172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-12 05:21:24 +00:00
parent 15c978cd09
commit 1596682a30
1 changed files with 2 additions and 1 deletions

View File

@ -2226,7 +2226,7 @@ function wp_ext2type( $ext ) {
* @return array Values with extension first and mime type. * @return array Values with extension first and mime type.
*/ */
function wp_check_filetype( $filename, $mimes = null ) { function wp_check_filetype( $filename, $mimes = null ) {
if ( null === $mimes ) if ( empty($mimes) )
$mimes = get_allowed_mime_types(); $mimes = get_allowed_mime_types();
$type = false; $type = false;
$ext = false; $ext = false;
@ -2306,6 +2306,7 @@ function get_allowed_mime_types() {
return $mimes; return $mimes;
} }
/** /**
* Retrieve nonce action "Are you sure" message. * Retrieve nonce action "Are you sure" message.
* *