Clean up URL and redirect after GET posts

git-svn-id: https://develop.svn.wordpress.org/trunk@6863 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-15 22:29:18 +00:00
parent 0077f38ee3
commit 06dae5ed28
5 changed files with 19 additions and 0 deletions

View File

@@ -95,6 +95,11 @@ break;
default:
if ( !empty($_GET['_wp_http_referer']) ) {
wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
exit;
}
wp_enqueue_script( 'admin-categories' );
wp_enqueue_script('admin-forms');