mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Remove manual santization of redirect URLs (handled in wp_redirect())
git-svn-id: https://develop.svn.wordpress.org/trunk@9779 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -213,7 +213,6 @@ case 'delete':
|
||||
$sendback = wp_get_referer();
|
||||
if (strpos($sendback, 'post.php') !== false) $sendback = admin_url('post-new.php');
|
||||
elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
|
||||
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
|
||||
wp_redirect($sendback);
|
||||
exit();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user