Remember page when redirecting after tag edit. Props Viper007Bond. fixes #9220 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10775 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5d8651d6f3
commit
cfef7198b4
@ -52,7 +52,14 @@ case 'delete':
|
||||
|
||||
wp_delete_term( $tag_ID, $taxonomy);
|
||||
|
||||
wp_redirect('edit-tags.php?message=2');
|
||||
$location = 'edit-tags.php';
|
||||
if ( $referer = wp_get_referer() ) {
|
||||
if ( false !== strpos($referer, 'edit-tags.php') )
|
||||
$location = $referer;
|
||||
}
|
||||
|
||||
$location = add_query_arg('message', 2, $location);
|
||||
wp_redirect($location);
|
||||
exit;
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user