Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r18023 r16608  
    8181        'post_content' => $url,
    8282        'post_mime_type' => $type,
    83         'guid' => $url,
    84         'context' => 'import',
    85         'post_status' => 'private'
     83        'guid' => $url
    8684    );
    8785
     
    8987    $id = wp_insert_attachment( $object, $file );
    9088
    91     // schedule a cleanup for one day from now in case of failed import or missing wp_import_cleanup() call
    92     wp_schedule_single_event( time() + 86400, 'importer_scheduled_cleanup', array( $id ) );
    93 
    9489    return array( 'file' => $file, 'id' => $id );
    9590}
Note: See TracChangeset for help on using the changeset viewer.