From 6279379c7649fa081dec8a27da5970342e3b1c3d Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 15 Feb 2008 21:02:50 +0000 Subject: [PATCH] Clean up URL and redirect after GET posts git-svn-id: http://svn.automattic.com/wordpress/trunk@6862 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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');