Changeset 44634 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 01/17/2019 06:26:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r44532 r44634 468 468 469 469 // Save the attachment metadata 470 $id = wp_insert_attachment( $attachment, $file, $post_id );470 $id = wp_insert_attachment( $attachment, $file, $post_id, true ); 471 471 if ( ! is_wp_error( $id ) ) { 472 472 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
Note: See TracChangeset
for help on using the changeset viewer.