in Tips and Tricks, WordPress, Wordpress Plugin

Conflict between WP Security scanner plugin and Avatar Display

I think you are not clear yet about my post title. But I am posting this because I faced this problem in my blog. I used Gravatar to show comment author’s avatar in my blog’s comment page. But for some days avatar was not displayed in comment page and it’s was really big pain for me why the avatar was not showing ???? 🙁 . I checked the avatar display setting and didn’t find any problem there. At last I lost hope to solve this problem. One thing is I like to solve problem and max time I am passionate to solve my problems 😀 .

Today, at noon I had a good sleep and when I woke up, some thing came to my mind about my blog. I got the solution about my problem. Currently I am using 100 plugins(both active and inactive) in blog and WP Security Scan 2.3 is one of theme. Wp Security Scan has a feature that it can hide the wp version. 😛

I used the following code(as it should be, ins’t it) to show avatar in my comment template
[source language=’php’]
if (get_bloginfo(‘version’)>=2.5){
echo get_avatar( $comment->comment_author_email, $size = ’50’, $comment->comment_author_link);
}
?>
[/source]

If you check the above code I used this line if (get_bloginfo('version')>=2.5) to check wp version and this is the main culprit of my problem 🙁 .

Thanks.

  1. thanks for your info. i got problem with my gravatar too.

    nice post, manchumahara.

    thanks for your this post

Comments are closed.