Make WordPress Core


Ignore:
Timestamp:
06/01/2006 09:48:31 PM (19 years ago)
Author:
ryan
Message:

Comment redirect fix from mdawaffe. fixes #2764

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/comment.php

    r3827 r3829  
    185185case 'editedcomment':
    186186
    187     $comment_id = (int) $_POST['comment_ID'];
    188 
    189     check_admin_referer('update-comment_' . $comment_id);
     187    $comment_ID = (int) $_POST['comment_ID'];
     188    $comment_post_ID = (int) $_POST['comment_post_id'];
     189
     190    check_admin_referer('update-comment_' . $comment_ID);
    190191
    191192    edit_comment();
     
    195196        header('Location: ' . $referredby);
    196197    } else {
    197         header ("Location: edit.php?p=$comment_id&c=1#comments");
     198        header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
    198199    }
    199200
Note: See TracChangeset for help on using the changeset viewer.