Don't redirect back to permalink after editing from Edit This link. fixes #7503 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8627 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b0d1405333
commit
b7d641c8fd
@ -37,9 +37,7 @@ function redirect_page($page_ID) {
|
||||
} elseif (!empty($referredby) && $referredby != $referer) {
|
||||
$location = $_POST['referredby'];
|
||||
$location = remove_query_arg('_wp_original_http_referer', $location);
|
||||
if ( $_POST['referredby'] == 'redo' )
|
||||
$location = get_permalink( $page_ID );
|
||||
elseif ( false !== strpos($location, 'edit-pages.php') )
|
||||
if ( false !== strpos($location, 'edit-pages.php') )
|
||||
$location = add_query_arg('posted', $page_ID, $location);
|
||||
elseif ( false !== strpos($location, 'wp-admin') )
|
||||
$location = "page-new.php?posted=$page_ID";
|
||||
|
Loading…
Reference in New Issue
Block a user