diff --git a/class-wxr-importer.php b/class-wxr-importer.php index 19afbec..c453fb4 100644 --- a/class-wxr-importer.php +++ b/class-wxr-importer.php @@ -1059,7 +1059,7 @@ protected function process_attachment( $post, $meta, $remote_url ) { } // as per wp-admin/includes/upload.php - $post_id = wp_insert_attachment( $post, $upload['file'] ); + $post_id = wp_insert_attachment( $post, $upload['file'], 0, TRUE ); if ( is_wp_error( $post_id ) ) { return $post_id; }