diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index b2fa72214..dcd6119e2 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -9,6 +9,13 @@ if (0 == $post_ID) { $form_action = 'editpost'; $form_extra = ""; } + +$sendto = $_SERVER['HTTP_REFERER']; + +if ( $sendto == get_permalink($post) ) + $sendto = 'redo'; +$sendto = wp_specialchars( $sendto ); + ?>