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:
parent
6ab398733b
commit
09719d811c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue