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
This commit is contained in:
saxmatt 2004-01-12 09:43:30 +00:00
parent 72135edb2b
commit 7c9878d797

View File

@ -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;