[wp-trac] [WordPress Trac] #15197: WXR export/import umbrella ticket

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 26 04:43:03 UTC 2010


#15197: WXR export/import umbrella ticket
--------------------------+-------------------------------------------------
 Reporter:  duck_         |       Owner:  duck_                
     Type:  defect (bug)  |      Status:  assigned             
 Priority:  normal        |   Milestone:  3.1                  
Component:  Export        |     Version:                       
 Severity:  normal        |    Keywords:  has-patch ux-feedback
--------------------------+-------------------------------------------------
Changes (by nacin):

  * owner:  => duck_
  * status:  new => assigned


Comment:

 Quick patch to the importer allows fallback if an invalid XML file is
 provided.

 One export I made earlier today from 3.1-alpha (pre r15961) did not work
 on trunk import, and libxml_get_errors() returned quite a few malformation
 errors. This allows that file to be processed.

 Patch is pretty lame. If we're receiving a WP_Error for malformed WXR, we
 should probably just go straight to regexp instead of stopping at libxml
 first. Also, the many WP_Errors that get returned in $class::parse()
 should probably have unique IDs (to the class), that way we can better
 detect invalid XML versus, say, incorrect format.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15197#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list