Refer comment editing back to correct page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7ed6e291ca
commit
1f752b90bc
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue