Skip to content

Commit

Permalink
Fix mimes empty check
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@12172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Nov 12, 2009
1 parent 15c978c commit 1596682
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-includes/functions.php
Expand Up @@ -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;
Expand Down Expand Up @@ -2306,6 +2306,7 @@ function get_allowed_mime_types() {

return $mimes;
}

/**
* Retrieve nonce action "Are you sure" message.
*
Expand Down

0 comments on commit 1596682

Please sign in to comment.