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:
parent
7e5969a1f9
commit
d12d1c803b
@ -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
Block a user