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:
Ryan Boren
2008-08-12 20:58:00 +00:00
parent da46c93af9
commit b0d1405333
3 changed files with 3 additions and 21 deletions
+1 -3
View File
@@ -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";