mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 17:47:50 +02:00
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:
parent
72135edb2b
commit
7c9878d797
@ -125,6 +125,7 @@ foreach ($posts as $post) { if ('' != trim($post)) {
|
|||||||
case 'STATUS':
|
case 'STATUS':
|
||||||
// "publish" and "draft" enumeration items match up; no change required
|
// "publish" and "draft" enumeration items match up; no change required
|
||||||
$post_status = $value;
|
$post_status = $value;
|
||||||
|
if (empty($post_status)) $post_status = 'publish';
|
||||||
break;
|
break;
|
||||||
case 'ALLOW COMMENTS':
|
case 'ALLOW COMMENTS':
|
||||||
$post_allow_comments = $value;
|
$post_allow_comments = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user