Ticket #2760: 2760-trunk.diff

File 2760-trunk.diff, 1.2 KB (added by mdawaffe, 6 years ago)

underscores for trunk

  • wp-admin/comment.php

     
    184184 
    185185case 'editedcomment': 
    186186 
    187         check_admin_referer('update-comment'); 
     187        $comment_id = (int) $_POST['comment_ID']; 
    188188 
     189        check_admin_referer('update-comment_' . $comment_id); 
     190 
    189191        edit_comment(); 
    190192 
    191193        $referredby = $_POST['referredby']; 
    192194        if (!empty($referredby)) { 
    193195                header('Location: ' . $referredby); 
    194196        } else { 
    195                 header ("Location: edit.php?p=$comment_post_ID&c=1#comments"); 
     197                header ("Location: edit.php?p=$comment_id&c=1#comments"); 
    196198        } 
    197199 
    198200        break; 
  • wp-admin/edit-form-comment.php

     
    66?> 
    77 
    88<form name="post" action="comment.php" method="post" id="post"> 
    9 <?php wp_nonce_field('update-comment' . $comment->comment_ID) ?> 
     9<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> 
    1010<div class="wrap"> 
    1111<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" /> 
    1212<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />