mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Comment redirect fix from mdawaffe. fixes #2764
git-svn-id: http://svn.automattic.com/wordpress/trunk@3829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
286a935a59
commit
406ea582af
@ -184,9 +184,10 @@ case 'approvecomment':
|
||||
|
||||
case 'editedcomment':
|
||||
|
||||
$comment_id = (int) $_POST['comment_ID'];
|
||||
$comment_ID = (int) $_POST['comment_ID'];
|
||||
$comment_post_ID = (int) $_POST['comment_post_id'];
|
||||
|
||||
check_admin_referer('update-comment_' . $comment_id);
|
||||
check_admin_referer('update-comment_' . $comment_ID);
|
||||
|
||||
edit_comment();
|
||||
|
||||
@ -194,7 +195,7 @@ case 'editedcomment':
|
||||
if (!empty($referredby)) {
|
||||
header('Location: ' . $referredby);
|
||||
} else {
|
||||
header ("Location: edit.php?p=$comment_id&c=1#comments");
|
||||
header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user