Honor comment_status and ping_status when writing a new post. Props Mark Jaquith. fixes #2445

git-svn-id: http://svn.automattic.com/wordpress/trunk@3547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-02-18 00:16:41 +00:00
parent 73affaa5c7
commit 70197e85f3
1 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,12 @@ function write_post() {
$_POST['post_status'] = 'draft';
}
if (!isset ($_POST['comment_status']))
$_POST['comment_status'] = 'closed';
if (!isset ($_POST['ping_status']))
$_POST['ping_status'] = 'closed';
if (!empty ($_POST['edit_date'])) {
$aa = $_POST['aa'];
$mm = $_POST['mm'];