Changes from branches/3.1/wp-admin/includes/import.php at r18023 to trunk/wp-admin/includes/import.php at r16608
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/import.php
r18023 r16608 81 81 'post_content' => $url, 82 82 'post_mime_type' => $type, 83 'guid' => $url, 84 'context' => 'import', 85 'post_status' => 'private' 83 'guid' => $url 86 84 ); 87 85 … … 89 87 $id = wp_insert_attachment( $object, $file ); 90 88 91 // schedule a cleanup for one day from now in case of failed import or missing wp_import_cleanup() call92 wp_schedule_single_event( time() + 86400, 'importer_scheduled_cleanup', array( $id ) );93 94 89 return array( 'file' => $file, 'id' => $id ); 95 90 }
Note: See TracChangeset
for help on using the changeset viewer.