[wp-trac] [WordPress Trac] #6656: Movable Type importer doesn't obey case restriction on post_status field

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 10 01:59:33 GMT 2008


#6656: Movable Type importer doesn't obey case restriction on post_status field
----------------------------+-----------------------------------------------
 Reporter:  jgbishop        |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.7      
Component:  Administration  |     Version:  2.5      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 Exported data from Movable Type 3.34 uses status values like "Publish"
 instead of "publish." Since WordPress expects the post_status field to be
 lower case, the Movable Type importer needs to force lower case on the
 imported data.

 Steps to Reproduce:

 1. Export data from Movable Type 3.34 (I assume any 3.3x Movable Type
 build acts the same way).
 2. Import data into WordPress 2.5, using the Movable Type importer.
 3. Note that the given posts have no "status" set (on the "Manage Posts"
 page). In the database, the posts have post_status values of "Publish"
 instead of "publish".

 I have attached a very simple patch for the Movable Type importer, which
 corrects this problem.

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


More information about the wp-trac mailing list