Some fixes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -61,7 +61,7 @@ case 'post':
|
||||
}
|
||||
}
|
||||
$post_status = $_POST['post_status'];
|
||||
if (empty($post_status)) $post_status = get_settings('default_post_status');
|
||||
if (empty($post_status)) $post_status = 'draft';
|
||||
$comment_status = $_POST['comment_status'];
|
||||
if (empty($comment_status)) $comment_status = get_settings('default_comment_status');
|
||||
$ping_status = $_POST['ping_status'];
|
||||
@@ -133,7 +133,7 @@ case 'post':
|
||||
} else {
|
||||
$location = 'post.php';
|
||||
}
|
||||
if ('' != $_POST['advanced'])
|
||||
if ( '' != $_POST['advanced'] || isset($_POST['save']) )
|
||||
$location = "post.php?action=edit&post=$post_ID";
|
||||
|
||||
header("Location: $location"); // Send user on their way while we keep working
|
||||
@@ -724,7 +724,7 @@ default:
|
||||
<?php
|
||||
}
|
||||
//set defaults
|
||||
$post_status = get_settings('default_post_status');
|
||||
$post_status = 'draft';
|
||||
$comment_status = get_settings('default_comment_status');
|
||||
$ping_status = get_settings('default_ping_status');
|
||||
$post_pingback = get_settings('default_pingback_flag');
|
||||
|
||||
Reference in New Issue
Block a user