WordPress.org

Make WordPress Core

Changeset 3547


Ignore:
Timestamp:
02/18/2006 12:16:41 AM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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'])) {
Note: See TracChangeset for help on using the changeset viewer.