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

git-svn-id: http://svn.automattic.com/wordpress/trunk@7649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-04-14 16:26:21 +00:00
parent 972851a755
commit d943a8252a
1 changed files with 1 additions and 1 deletions

View File

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