git-svn-id: http://svn.automattic.com/wordpress/trunk@2219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-05 05:32:36 +00:00
parent dcd9bed892
commit 20a12ca306
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';
$sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
header ('Location: ' . $sendback);
generate_page_rewrite_rules();
do_action('delete_post', $post_id);
break;