Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#6656 closed defect (bug) (fixed)

Movable Type importer doesn't obey case restriction on post_status field

Reported by: jgbishop's profile jgbishop Owned by:
Milestone: 2.5.1 Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

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.

Attachments (1)

patch.diff (488 bytes) - added by jgbishop 17 years ago.

Download all attachments as: .zip

Change History (4)

@jgbishop
17 years ago

#1 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7648]) Make MT post status lower case when importing. Props jgbishop. fixes #6656 for 2.5

#2 @ryan
17 years ago

(In [7649]) Make MT post status lower case when importing. Props jgbishop. fixes #6656 for trunk

#3 @ryan
17 years ago

  • Milestone changed from 2.7 to 2.5.1
Note: See TracTickets for help on using tickets.