Honor comment_status and ping_status when writing a new post. Props Mark Jaquith. fixes #2445
git-svn-id: https://develop.svn.wordpress.org/trunk@3547 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f598aff5b6
commit
f2979042e5
|
@ -58,6 +58,12 @@ function write_post() {
|
||||||
$_POST['post_status'] = 'draft';
|
$_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'])) {
|
if (!empty ($_POST['edit_date'])) {
|
||||||
$aa = $_POST['aa'];
|
$aa = $_POST['aa'];
|
||||||
$mm = $_POST['mm'];
|
$mm = $_POST['mm'];
|
||||||
|
|
Loading…
Reference in New Issue