Changes from trunk/wp-admin/includes/import.php at r16608 to branches/3.1/wp-admin/includes/import.php at r18023
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-admin/includes/import.php
r16608 r18023 81 81 'post_content' => $url, 82 82 'post_mime_type' => $type, 83 'guid' => $url 83 'guid' => $url, 84 'context' => 'import', 85 'post_status' => 'private' 84 86 ); 85 87 … … 87 89 $id = wp_insert_attachment( $object, $file ); 88 90 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 89 94 return array( 'file' => $file, 'id' => $id ); 90 95 }
Note: See TracChangeset
for help on using the changeset viewer.