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:
parent
972851a755
commit
d943a8252a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue