diff --git a/wp-comments-post.php b/wp-comments-post.php index c9d1ccc587..2e0783d039 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -98,7 +98,7 @@ header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); -$location = get_permalink($comment_ID); +$location = get_permalink($comment_post_ID); if ($is_IIS) { header("Refresh: 0;url=$location"); @@ -106,4 +106,4 @@ if ($is_IIS) { header("Location: $location"); } -?> \ No newline at end of file +?>