From 09719d811cf5f575e6e41433a137d5b40d0e836b Mon Sep 17 00:00:00 2001 From: Matt Mullenweg 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: https://develop.svn.wordpress.org/trunk@757 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 1b51c5fb70..195684b87c 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;