From 20a12ca30679d15010ea070dcbac7ed968d674fa Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sat, 5 Feb 2005 05:32:36 +0000 Subject: [PATCH] Update rewrite rules on delete - http://wordpress.org/support/topic.php?id=22562 git-svn-id: http://svn.automattic.com/wordpress/trunk@2219 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/post.php b/wp-admin/post.php index 456fbbe06d..347eb539ae 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -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;