Redirect to cleanup URL
git-svn-id: http://svn.automattic.com/wordpress/trunk@6931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e6fae2dc51
commit
34046eb2de
|
@ -177,6 +177,12 @@ case 'adduser':
|
|||
}
|
||||
|
||||
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-users');
|
||||
wp_enqueue_script('admin-forms');
|
||||
|
||||
|
|
Loading…
Reference in New Issue