mantisbt/mantisbt — comment on commit 46ff26ec28a251817c7fff9992efcb3501477655
File:  line 0
By atrol:

It's Ok now, but we would get a better performance if $p_user_id is a parameter for calls off tag_bug_detach and tag_bug_attach to avoid unnecessary calls of auth_get_current_user_id.

tag_bug_detach( $t_tag_id, $p_issue_id, true, $p_user_id);
tag_bug_attach( $t_tag_id, $p_issue_id, $p_user_id);

Maybe too nitpicking ;-)