git-svn-id: https://develop.svn.wordpress.org/trunk@2219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-02-05 05:32:36 +00:00
parent bb3599318d
commit 294a80c2b0
1 changed files with 1 additions and 0 deletions

View File

@ -419,6 +419,7 @@ case 'delete':
if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php'; if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback); $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
header ('Location: ' . $sendback); header ('Location: ' . $sendback);
generate_page_rewrite_rules();
do_action('delete_post', $post_id); do_action('delete_post', $post_id);
break; break;