Changeset 18023 for branches/3.1/wp-admin/includes/import.php
- Timestamp:
- 05/24/2011 03:57:28 PM (14 years ago)
- Location:
- branches/3.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1
-
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.