Refer comment editing back to correct page.

git-svn-id: https://develop.svn.wordpress.org/trunk@489 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-10-27 07:21:45 +00:00
parent 2dd7337f90
commit b57b0bd70e

View File

@ -404,7 +404,7 @@ switch($action) {
WHERE comment_ID = $comment_ID"
);
$referredby = $HTTP_SERVER_VARS['HTTP_REFERER'];
$referredby = $HTTP_POST_VARS['referredby'];
if (!empty($referredby)) header('Location: ' . $referredby);
else header ("Location: edit.php?p=$comment_post_ID&c=1#comments");