[wp-trac] Re: [WordPress Trac] #8252: WXR import is broken and tags are not imported for posts correctly

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 20 08:17:57 GMT 2008


#8252: WXR import is broken and tags are not imported for posts correctly
----------------------------------------------------+-----------------------
 Reporter:  kaankivilcim                            |        Owner:  tott    
     Type:  defect                                  |       Status:  reopened
 Priority:  high                                    |    Milestone:  2.7     
Component:  Import                                  |      Version:  2.7     
 Severity:  major                                   |   Resolution:          
 Keywords:  wxr import, tags, 2.7-beta3, has_patch  |  
----------------------------------------------------+-----------------------
Changes (by tott):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 Not sure if removing the trim will work best as whitespaces in comma
 seperated tags will still be there then.

 In a tag string like
 {{{
 tag1, tag2, tag3
 }}}

 The spaces in around the tags will be preserved. Not sure if its filtered
 at some other place already. But Putting the trim around the whole $tags
 string will only trim from the beginning and end of this whole string with
 comma seperated tags.

 In general this should not be a problem as things should get filtered on
 other places, but under some cirumstances it might cause trouble. For
 example I could reproduce one scenario where adding a post with comma
 seperated list of tags always the first tag in the list had a space
 appended when I checked it in the database.

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


More information about the wp-trac mailing list