[wp-trac] [WordPress Trac] #20375: Attachments aren't exported when selecting a Custom Post Type on export

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 6 10:50:28 UTC 2012


#20375: Attachments aren't exported when selecting a Custom Post Type on export
--------------------------+-----------------------------
 Reporter:  dannydehaan   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Export        |    Version:  3.4
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 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:

 {{{
 <wp:postmeta>
         <wp:meta_key>_thumbnail_id</wp:meta_key>
         <wp:meta_value><![CDATA[855]]></wp:meta_value>
 </wp:postmeta>
 }}}

 And when searching for this ID, i can find an attachment with ID 855 like
 the following:
 {{{
 <wp:post_id>855</wp:post_id>
 <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>
 <wp:comment_status>open</wp:comment_status>
 <wp:ping_status>open</wp:ping_status>
 <wp:post_name>wco-6</wp:post_name>
 <wp:status>inherit</wp:status>
 <wp:post_parent>43</wp:post_parent>
 <wp:menu_order>0</wp:menu_order>
 <wp:post_type>attachment</wp:post_type>
 }}}

 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20375>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list