Fix comments popup window reload upon post. http://mosquito.wordpress.org/view.php?id=897

git-svn-id: http://svn.automattic.com/wordpress/trunk@2427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-03-10 07:01:42 +00:00
parent 1996a5986f
commit 4cd9ea1d27
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-cache, must-revalidate, max-age=0');
header('Pragma: no-cache');
$location = get_permalink($comment_post_ID);
$location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];
header("Location: $location");