Changeset 3547

Show
Ignore:
Timestamp:
02/18/06 00:16:41 (3 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-functions.php

    r3536 r3547  
    5858            $_POST['post_status'] = 'draft'; 
    5959    } 
     60 
     61    if (!isset ($_POST['comment_status'])) 
     62        $_POST['comment_status'] = 'closed'; 
     63 
     64    if (!isset ($_POST['ping_status'])) 
     65        $_POST['ping_status'] = 'closed'; 
    6066 
    6167    if (!empty ($_POST['edit_date'])) {