mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 02:22:25 +01:00
Fix mimes empty check
git-svn-id: https://develop.svn.wordpress.org/trunk@12171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
292e5394a4
commit
dbc040136c
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user