Changeset 53183 for trunk/src/wp-admin/includes/import.php
- Timestamp:
- 04/14/2022 03:13:45 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/import.php
r49936 r53183 104 104 } 105 105 106 // Construct the object array.107 $ object = array(106 // Construct the attachment array. 107 $attachment = array( 108 108 'post_title' => wp_basename( $upload['file'] ), 109 109 'post_content' => $upload['url'], … … 115 115 116 116 // Save the data. 117 $id = wp_insert_attachment( $ object, $upload['file'] );117 $id = wp_insert_attachment( $attachment, $upload['file'] ); 118 118 119 119 /*
Note: See TracChangeset
for help on using the changeset viewer.