Ticket #2760: 2760-2.0.diff
| File 2760-2.0.diff, 1.2 KB (added by , 20 years ago) |
|---|
-
wp-admin/post.php
322 322 323 323 case 'editedcomment': 324 324 325 check_admin_referer('update-comment');325 $comment_id = (int) $_POST['comment_ID']; 326 326 327 check_admin_referer('update-comment_' . $comment_id); 328 327 329 edit_comment(); 328 330 329 331 $referredby = $_POST['referredby']; 330 332 if (!empty($referredby)) { 331 333 header('Location: ' . $referredby); 332 334 } else { 333 header ("Location: edit.php?p=$comment_ post_ID&c=1#comments");335 header ("Location: edit.php?p=$comment_id&c=1#comments"); 334 336 } 335 337 336 338 break; -
wp-admin/edit-form-comment.php
6 6 ?> 7 7 8 8 <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) ?> 10 10 <div class="wrap"> 11 11 <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" /> 12 12 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />