WordPress.org

Make WordPress Core

Changeset 12172


Ignore:
Timestamp:
11/12/2009 05:21:24 AM (9 years ago)
Author:
ryan
Message:

Fix mimes empty check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/functions.php

    r12166 r12172  
    22272227 */
    22282228function wp_check_filetype( $filename, $mimes = null ) {
    2229     if ( null === $mimes )
     2229    if ( empty($mimes) )
    22302230        $mimes = get_allowed_mime_types();
    22312231    $type = false;
     
    23072307    return $mimes;
    23082308}
     2309
    23092310/**
    23102311 * Retrieve nonce action "Are you sure" message.
Note: See TracChangeset for help on using the changeset viewer.