Hi,
I am using a widget that displays a few blog authors along with their gravatar image, which is automatically generated from the e-mail addresses in the respective profiles.
Since installing WPBook Lite, the images in the widget are no longer the proper gravatar images, but a blue default gravatar image. The hash in the URL is in fact the MD5 hash for an empty string.
The reason lies in WPBook Lite's add_filter hook, which fires everytime get_avatar function is called, not just when outputting comments.
There is an easy fix for WPBook Lite to only replace the avatar output when the email address of the comment matches the WPBook setting "What email address should WPBook associate with imported comments?".
Replace on line 558 of file wpbook-lite/wpbook-lite.php:
if(($wpbookLiteAdminOptions['wpbook_use_global_gravatar'] =="true")) {
with:
if(($wpbookLiteAdminOptions['wpbook_use_global_gravatar'] =="true")
&& is_object($comment)
&& isset($comment->comment_author_email)
&& $comment->comment_author_email == $wpbookLiteAdminOptions['imported_comments_email']) {
This way WPBook Lite will continue functioning as expected while leaving avatars outside the comments alone.
Thanks for a great plugin.