Problem/Motivation
Was reviewing the template_preprocess_comment() function's code and noticed a bug. The parent comment author was being built off the wrong comment.
if ($comment->pid->target_id) {
// Fetch and store the parent comment information for use in templates.
$comment_parent = $comment->pid->entity;
$account_parent = comment_prepare_author($comment);
$variables['parent_comment'] = $comment_parent;
$variables['parent_author'] = theme('username', array('account' => $account_parent));Proposed resolution
comment_prepare_author($comment);
should becomment_prepare_author($comment_parent);