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
This commit is contained in:
parent
dcd9bed892
commit
20a12ca306
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue