mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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@8625 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-3
@@ -39,9 +39,7 @@ function redirect_post($post_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( $post_ID );
|
||||
elseif ( false !== strpos($location, 'edit.php') )
|
||||
if ( false !== strpos($location, 'edit.php') )
|
||||
$location = add_query_arg('posted', $post_ID, $location);
|
||||
elseif ( false !== strpos($location, 'wp-admin') )
|
||||
$location = "post-new.php?posted=$post_ID";
|
||||
|
||||
Reference in New Issue
Block a user