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
This commit is contained in:
Matt Mullenweg 2004-01-12 09:43:30 +00:00
parent 6ab398733b
commit 09719d811c
1 changed files with 1 additions and 0 deletions

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;