diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 4a2e7c2e72..702a727ef4 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -378,7 +378,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array(), $override unset( $attachment['ID'] ); // Save the data - $id = wp_insert_attachment($attachment, $file, $post_id); + $id = wp_insert_attachment( $attachment, $file, $post_id, true ); if ( !is_wp_error($id) ) { wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 10f09c524d..5c6f72a14e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41322'; +$wp_version = '4.9-alpha-41323'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.