Ticket #2760: 2760-trunk.diff
| File 2760-trunk.diff, 1.2 KB (added by , 20 years ago) |
|---|
-
wp-admin/comment.php
184 184 185 185 case 'editedcomment': 186 186 187 check_admin_referer('update-comment');187 $comment_id = (int) $_POST['comment_ID']; 188 188 189 check_admin_referer('update-comment_' . $comment_id); 190 189 191 edit_comment(); 190 192 191 193 $referredby = $_POST['referredby']; 192 194 if (!empty($referredby)) { 193 195 header('Location: ' . $referredby); 194 196 } else { 195 header ("Location: edit.php?p=$comment_ post_ID&c=1#comments");197 header ("Location: edit.php?p=$comment_id&c=1#comments"); 196 198 } 197 199 198 200 break; -
wp-admin/edit-form-comment.php
6 6 ?> 7 7 8 8 <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) ?> 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 ?>' />