WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2006 01:56:06 AM (13 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r4550 r4552  
    19831983
    19841984    $url = $file['url'];
     1985    $type = $file['type'];
    19851986    $file = addslashes( $file['file'] );
    19861987    $filename = basename( $file );
     
    19891990    $object = array( 'post_title' => $filename,
    19901991        'post_content' => $url,
    1991         'post_mime_type' => 'import',
     1992        'post_mime_type' => $type,
    19921993        'guid' => $url
    19931994    );
Note: See TracChangeset for help on using the changeset viewer.