mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Update rewrite rules on delete - http://wordpress.org/support/topic.php?id=22562
git-svn-id: https://develop.svn.wordpress.org/trunk@2219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bb3599318d
commit
294a80c2b0
@ -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…
x
Reference in New Issue
Block a user