Comment count is wrong on user page

4.43K viewsIssues
0

Hi, I just installed AnsPress and I found out that the number of comments in the user profile is wrong.

This is actualy due to a mistake in theme/default/user/user.php on line 64). Current code is :

printf(__('%d Comments', 'anspress-question-answer' ), ap_user_comment_count(ap_displayed_user_id() ) );

whereas it should be :

printf(__('%d Comments', 'anspress-question-answer' ), ap_user_comment_count(ap_get_displayed_user_id() ) );

I suggest that you include this fix in a next release.

Besides that, you obviously achieved a tremendous work on this plugin. Thanks and kudos !

0

Great ! I was not aware of the github repo. I’ll take a look at it.

Regards,

1

Its already fixed. You can try our beta version from GitHub