Changeset 41323
- Timestamp:
- 08/30/2017 03:03:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r40597 r41323 379 379 380 380 // Save the data 381 $id = wp_insert_attachment( $attachment, $file, $post_id);381 $id = wp_insert_attachment( $attachment, $file, $post_id, true ); 382 382 if ( !is_wp_error($id) ) { 383 383 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
Note: See TracChangeset
for help on using the changeset viewer.