mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Fixed bug #0000047: Now a user will be redirected to prev. location after editing a post. Also fixed line breaks.
git-svn-id: https://develop.svn.wordpress.org/trunk@1423 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -334,6 +334,8 @@ case 'editpost':
|
||||
$location = $_SERVER['HTTP_REFERER'] . '&message=2#postcustom';
|
||||
} elseif ($_POST['deletemeta']) {
|
||||
$location = $_SERVER['HTTP_REFERER'] . '&message=3#postcustom';
|
||||
} elseif (isset($_POST['referredby']) && $_POST['referredby'] != $_SERVER['HTTP_REFERER']) {
|
||||
$location = $_POST['referredby'];
|
||||
} else {
|
||||
$location = 'post.php';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user