mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -19,6 +19,9 @@ if ( isset($_GET['deleteit']) && isset($_GET['linkcheck']) ) {
|
||||
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
|
||||
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;
|
||||
}
|
||||
|
||||
wp_enqueue_script( 'wp-lists' );
|
||||
|
||||
Reference in New Issue
Block a user