Ticket #2445: ping_comment_status_fix.diff

File ping_comment_status_fix.diff, 507 bytes (added by markjaquith, 6 years ago)
  • wp-admin/admin-functions.php

     
    5858                        $_POST['post_status'] = 'draft'; 
    5959        } 
    6060 
     61        if (!isset ($_POST['comment_status'])) 
     62                $_POST['comment_status'] = 'closed'; 
     63 
     64        if (!isset ($_POST['ping_status'])) 
     65                $_POST['ping_status'] = 'closed'; 
     66 
    6167        if (!empty ($_POST['edit_date'])) { 
    6268                $aa = $_POST['aa']; 
    6369                $mm = $_POST['mm'];