Don't use 'import' as a mime type. Props mdawaffe and westi. fixes #3219

git-svn-id: https://develop.svn.wordpress.org/trunk@4552 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-11-30 01:56:06 +00:00
parent a92a6dea29
commit 80203b1777
2 changed files with 5 additions and 3 deletions

View File

@@ -1982,13 +1982,14 @@ function wp_import_handle_upload() {
return $file;
$url = $file['url'];
$type = $file['type'];
$file = addslashes( $file['file'] );
$filename = basename( $file );
// Construct the object array
$object = array( 'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => 'import',
'post_mime_type' => $type,
'guid' => $url
);