Remove manual santization of redirect URLs (handled in wp_redirect())
git-svn-id: http://svn.automattic.com/wordpress/trunk@9779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a59fe0f02c
commit
e00551ef6c
|
@ -70,7 +70,6 @@ case 'bulk-delete':
|
|||
}
|
||||
|
||||
$sendback = wp_get_referer();
|
||||
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
|
||||
|
||||
wp_redirect($sendback);
|
||||
exit();
|
||||
|
|
|
@ -52,7 +52,6 @@ if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2']
|
|||
$sendback = wp_get_referer();
|
||||
if (strpos($sendback, 'page.php') !== false) $sendback = admin_url('page-new.php');
|
||||
elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
|
||||
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
|
||||
if ( isset($done) ) {
|
||||
$done['updated'] = count( $done['updated'] );
|
||||
$done['skipped'] = count( $done['skipped'] );
|
||||
|
|
|
@ -52,7 +52,6 @@ if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2']
|
|||
$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);
|
||||
if ( isset($done) ) {
|
||||
$done['updated'] = count( $done['updated'] );
|
||||
$done['skipped'] = count( $done['skipped'] );
|
||||
|
|
|
@ -24,9 +24,7 @@ if ( isset($_GET['action']) && isset($_GET['linkcheck']) ) {
|
|||
wp_delete_link($link_id);
|
||||
}
|
||||
|
||||
$sendback = wp_get_referer();
|
||||
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
|
||||
wp_redirect($sendback);
|
||||
wp_redirect( wp_get_referer() );
|
||||
exit;
|
||||
}
|
||||
} elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
|
||||
|
|
|
@ -168,7 +168,6 @@ case 'delete':
|
|||
$sendback = wp_get_referer();
|
||||
if (strpos($sendback, 'page.php') !== false) $sendback = admin_url('page-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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue