Make WordPress Core

Changeset 3826


Ignore:
Timestamp:
06/01/2006 04:58:44 PM (20 years ago)
Author:
ryan
Message:

Comment nonce fixes from Mark Jaquith and mdawaffe. fixes #2760

Location:
branches/2.0/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/edit-form-comment.php

    r3771 r3826  
    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 ?>" />
  • branches/2.0/wp-admin/post.php

    r3808 r3826  
    323323case 'editedcomment':
    324324
    325     check_admin_referer('update-comment');
     325    $comment_id = (int) $_POST['comment_ID'];
     326    check_admin_referer('update-comment_' . $comment_id);
    326327
    327328    edit_comment();
Note: See TracChangeset for help on using the changeset viewer.