Support » Plugins » WPBook capital letters in gravatar

  • Resolved Brooke


    I just noticed another small bug with WPBook. When I added gravatar support I forgot to add strtolower. The problem, if the user has capital letters in their gravatar it won’t show and the default will be shown instead.

    Easy fix though, in wpbook/theme/comments.php change line 38 from:

    $grav_url = "" . md5(get_comment_author_email()) . "?d=" . $gravatar_default . "&s=60&r=".$gravatar_rating;


    $grav_url = "" .
    md5(strtolower(get_comment_author_email())) . "?d=" . $gravatar_default . "&s=60&r=".$gravatar_rating;

    At some point we should clean this up and movie it to a function but for now this should fix the problem of capital letters in e-mails affecting gravatars.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPBook capital letters in gravatar’ is closed to new replies.