[wp-trac] Re: [WordPress Trac] #5468: WXR import error when no tags are used

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 6 07:25:09 GMT 2008


#5468: WXR import error when no tags are used
----------------------+-----------------------------------------------------
 Reporter:  fitztrev  |        Owner:  anonymous
     Type:  defect    |       Status:  new      
 Priority:  normal    |    Milestone:  2.5      
Component:  General   |      Version:           
 Severity:  normal    |   Resolution:           
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by fitztrev):

  * summary:  array_shift() Error on WXR Import => WXR import error when no
              tags are used

Comment:

 This occurs because the 'tags' variable is only casted into an array once
 a tag has been found.  If the blog owner has never used tags before, this
 causes a problem.  This patch initializes the 'tags' variable as an array
 at the beginning of the import class.


 To recreate:

 1) Have 2 fresh installations side by side.

 2) Export content from 1 WP instance from Manage>Export

 3) Import that file on the second WP instance from Manage>Import>WordPress

 *) Then try again, but give Hello World a tag.

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


More information about the wp-trac mailing list