Ticket #2764: 2764-trunk.diff

File 2764-trunk.diff, 764 bytes (added by mdawaffe, 6 years ago)

trunk

  • wp-admin/comment.php

     
    184184 
    185185case 'editedcomment': 
    186186 
    187         $comment_id = (int) $_POST['comment_ID']; 
     187        $comment_ID = (int) $_POST['comment_ID']; 
     188        $comment_post_ID = (int) $_POST['comment_post_id']; 
    188189 
    189         check_admin_referer('update-comment_' . $comment_id); 
     190        check_admin_referer('update-comment_' . $comment_ID); 
    190191 
    191192        edit_comment(); 
    192193 
     
    194195        if (!empty($referredby)) { 
    195196                header('Location: ' . $referredby); 
    196197        } else { 
    197                 header ("Location: edit.php?p=$comment_id&c=1#comments"); 
     198                header ("Location: edit.php?p=$comment_post_ID&c=1#comments"); 
    198199        } 
    199200 
    200201        break;