Make WordPress Core

Ticket #2760: 2760-2.0.diff

File 2760-2.0.diff, 1.2 KB (added by mdawaffe, 20 years ago)

underscores for branches/2.0

  • wp-admin/post.php

     
    322322
    323323case 'editedcomment':
    324324
    325         check_admin_referer('update-comment');
     325        $comment_id = (int) $_POST['comment_ID'];
    326326
     327        check_admin_referer('update-comment_' . $comment_id);
     328
    327329        edit_comment();
    328330
    329331        $referredby = $_POST['referredby'];
    330332        if (!empty($referredby)) {
    331333                header('Location: ' . $referredby);
    332334        } else {
    333                 header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
     335                header ("Location: edit.php?p=$comment_id&c=1#comments");
    334336        }
    335337
    336338        break;
  • wp-admin/edit-form-comment.php

     
    66?>
    77
    88<form name="post" action="post.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 ?>' />