WordPress.org

Make WordPress Core

Changeset 11227


Ignore:
Timestamp:
05/07/09 06:50:54 (5 years ago)
Author:
westi
Message:

Set empty file type if skipping file type check. Fixes notices when importing. See #9393 props sivel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r11204 r11227  
    284284        if ( !$type ) 
    285285            $type = $file['type']; 
     286    } else { 
     287        $type = ''; 
    286288    } 
    287289 
     
    306308    $url = $uploads['url'] . "/$filename"; 
    307309 
    308     $return = apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 
    309  
    310     return $return; 
     310    return apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) ); 
    311311} 
    312312 
Note: See TracChangeset for help on using the changeset viewer.