diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php index e90a87f760..d8048f91d3 100644 --- a/src/wp-admin/edit-tags.php +++ b/src/wp-admin/edit-tags.php @@ -81,7 +81,7 @@ case 'add-tag': $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST ); if ( $ret && !is_wp_error( $ret ) ) - $location = add_query_arg( 'message', 1, $location ); + $location = add_query_arg( 'message', 1, $referer ); else $location = add_query_arg( array( 'error' => true, 'message' => 4 ), $referer );