Clean up URL and redirect after GET posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@6862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4cd65bf8d0
commit
6279379c76
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue