From 0077f38ee3d8ee438ff9e9bf96faae63394f07ff Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 15 Feb 2008 21:02:50 +0000 Subject: [PATCH] Clean up URL and redirect after GET posts git-svn-id: https://develop.svn.wordpress.org/trunk@6862 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index cda1e8ac76..107f1c7a02 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -26,6 +26,9 @@ if ( isset($_GET['deleteit']) && isset($_GET['delete']) ) { wp_redirect($sendback); exit(); +} elseif ( !empty($_GET['_wp_http_referer']) ) { + wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']))); + exit; } $title = __('Posts');