From 4f0449f79b297f708f97af9e4ed95f7b39405228 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 6 Oct 2004 06:34:19 +0000 Subject: [PATCH] Fixed minor bug - wrong variable passed to get_permalink() - caused comment redirect to fail. git-svn-id: http://svn.automattic.com/wordpress/trunk@1756 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-comments-post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?>