From 7c9878d7974516ddcd2f8b02414d9e0a9085e369 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 12 Jan 2004 09:43:30 +0000 Subject: [PATCH] Just in case post_status isn't set for some reason. git-svn-id: http://svn.automattic.com/wordpress/trunk@757 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import-mt.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/import-mt.php b/wp-admin/import-mt.php index 1b51c5fb7..195684b87 100644 --- a/wp-admin/import-mt.php +++ b/wp-admin/import-mt.php @@ -125,6 +125,7 @@ foreach ($posts as $post) { if ('' != trim($post)) { case 'STATUS': // "publish" and "draft" enumeration items match up; no change required $post_status = $value; + if (empty($post_status)) $post_status = 'publish'; break; case 'ALLOW COMMENTS': $post_allow_comments = $value;