Redirect to cleanup URL
git-svn-id: https://develop.svn.wordpress.org/trunk@6931 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
98779e9752
commit
6dc969cc4a
@ -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
Block a user