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:
parent
2dd7337f90
commit
b57b0bd70e
@ -404,7 +404,7 @@ switch($action) {
|
|||||||
WHERE comment_ID = $comment_ID"
|
WHERE comment_ID = $comment_ID"
|
||||||
);
|
);
|
||||||
|
|
||||||
$referredby = $HTTP_SERVER_VARS['HTTP_REFERER'];
|
$referredby = $HTTP_POST_VARS['referredby'];
|
||||||
if (!empty($referredby)) header('Location: ' . $referredby);
|
if (!empty($referredby)) header('Location: ' . $referredby);
|
||||||
else header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
|
else header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user