Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#20375 closed defect (bug) (duplicate)

Attachments aren't exported when selecting a Custom Post Type on export

Reported by: dannydehaan's profile dannydehaan Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Export Keywords: needs-patch
Focuses: Cc:


When i'm exporting my full website including the custom post type's, all the data is exported correctly including thumbnails. In my XML i get the following lines:


And when searching for this ID, i can find an attachment with ID 855 like the following:

<wp:post_date>2011-11-24 19:49:23</wp:post_date>
<wp:post_date_gmt>2011-11-24 17:49:23</wp:post_date_gmt>

When i'm selecting to only export my custom post type, i can see the block that's defining the _thumbnail_id, but i can't find the attachment data for that ID. I've already searched in the wp-admin/includes/export.php file, but i can't find where the bug is.

Change History (2)

#1 @duck_
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version changed from 3.4 to 3.0

Duplicate of #17379.

Yep, it sucks. The solution is probably to do something like looking through the list of posts to export and then also grab any posts/attachments that have any of those as a parent.

#2 @dannydehaan
12 years ago

Ahhh ok, i'm sorry, couldn't find it when i were searching Trac. I'll look if i'm having some time this weekend to create a patch.

Note: See TracTickets for help on using tickets.