Make WordPress Core

Changeset 12171


Ignore:
Timestamp:
11/12/2009 05:20:48 AM (14 years ago)
Author:
ryan
Message:

Fix mimes empty check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r12165 r12171  
    22612261 */
    22622262function wp_check_filetype( $filename, $mimes = null ) {
    2263     if ( null === $mimes )
     2263    if ( empty($mimes) )
    22642264        $mimes = get_allowed_mime_types();
    22652265    $type = false;
     
    23412341    return $mimes;
    23422342}
     2343
    23432344/**
    23442345 * Retrieve nonce action "Are you sure" message.
Note: See TracChangeset for help on using the changeset viewer.