Make MT post status lower case when importing. Props jgbishop. fixes #6656 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@7649 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-14 16:26:21 +00:00
parent 7e5969a1f9
commit d12d1c803b
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ class MT_Import {
else if ( 'ping' == $context )
$ping->title = $title;
} else if ( 0 === strpos($line, "STATUS:") ) {
$status = trim( substr($line, strlen("STATUS:")) );
$status = trim( strtolower( substr($line, strlen("STATUS:")) ) );
if ( empty($status) )
$status = 'publish';
$post->post_status = $status;