diff options
| author | matt <matt@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-05 20:45:50 +0000 |
|---|---|---|
| committer | matt <matt@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-05 20:45:50 +0000 |
| commit | 808fef533c5187217e80f703bdb3c422b35a8234 (patch) | |
| tree | 0d1f7ae3ee8ea843068b22484aed55f53b806a10 /wp-inst/wp-admin/admin-functions.php | |
| parent | 41d4795eef2579e540b0ae0919185d68da126e6a (diff) | |
Change from WP
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@132 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/admin-functions.php')
| -rw-r--r-- | wp-inst/wp-admin/admin-functions.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wp-inst/wp-admin/admin-functions.php b/wp-inst/wp-admin/admin-functions.php index 67db21c..6fa3d2a 100644 --- a/wp-inst/wp-admin/admin-functions.php +++ b/wp-inst/wp-admin/admin-functions.php @@ -92,7 +92,13 @@ function edit_post() { if ( 'publish' == $_POST['post_status'] && ! current_user_can('publish_posts') ) $_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']; |
