[wp-trac] Re: [WordPress Trac] #3840: WXR imported pages dissapear

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 1 04:33:40 GMT 2007


#3840: WXR imported pages dissapear
-----------------------------------------+----------------------------------
 Reporter:  sunburntkamel                |        Owner:  technosailor
     Type:  defect                       |       Status:  new         
 Priority:  low                          |    Milestone:  2.2         
Component:  General                      |      Version:  2.1         
 Severity:  normal                       |   Resolution:              
 Keywords:  WXR import export pages CMS  |  
-----------------------------------------+----------------------------------
Comment (by takayukister):

 Hi technosailor,

 I checked this patch and found a defect. In case pretty permalink is used,
 it can generate incorrect guid. For example, when a page "Child" has a
 parent page "Parent", the child's guid should be:
 {{{
 http://example.com/parent/child
 }}}
 But applied this patch, it'll be:
 {{{
 http://example.com//child
 }}}
 This is because the original importing code uses wp_insert_post() to
 generate new posts, it needs the post name of the parent page to generate
 child's guid. So I think it would be safe to process parent first. (I
 created another patch. http://trac.wordpress.org/ticket/4025 If two places
 are reporting the same issue, should we merge?)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3840#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list