diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 7c4effd784..a6d13e2537 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -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; @@ -271,13 +278,13 @@ else