Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't redirect back to permalink after editing from Edit This link. f…

…ixes #7503 for 2.6

git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@8628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit fa17bbccf1422fb2e2b5dc8d3f29a47e5f2fd9bc 1 parent bd0d603
ryan authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 wp-admin/page.php
View
4 wp-admin/page.php
@@ -34,9 +34,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";
Please sign in to comment.
Something went wrong with that request. Please try again.