Ready to get started?Download WordPress


[resolved] WPBook capital letters in gravatar (4 posts)

  1. Brooke Dukes
    Posted 4 years ago #

    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 = "http://www.gravatar.com/avatar/" . md5(get_comment_author_email()) . "?d=" . $gravatar_default . "&s=60&r=".$gravatar_rating;


    $grav_url = "http://www.gravatar.com/avatar/" .
    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.

  2. johneckman
    Posted 4 years ago #

    Done in trunk, will get picked up in next release

  3. johneckman
    Posted 3 years ago #

    Can you mark this resolved?

  4. Brooke Dukes
    Posted 3 years ago #

    Sure thing, I marked it "Not a support request" because it was more of a bug report to you than a support question. I think this is where using a ticket system would be best.

Topic Closed

This topic has been closed to new replies.

About this Topic