WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Fix for Co-Author Plus Gravatar display in admin screens (4 posts)

  1. Ironclad360
    Member
    Posted 2 years ago #

    Like the Co-Author Plus plugin but not showing the correct user Gravatar in the admin edit screens was annoying. I quickly realized that an (optional) image extension was being applied to the Gravatar query in the JavaScript which was causing it to fail; resulting with the default icon instead.

    To fix this, edit the following in the /js/co-authors-plus.js file:

    return 'http://www.gravatar.com/avatar/' + MD5(email) + '.jpg?s=' + size;

    to
    return 'http://www.gravatar.com/avatar/' + MD5(email) + '?s=' + size;

    Good luck.

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    Hmm, that's odd. The avatars show up correctly for me. Can you give me some steps to reproduce? What sort of users have incorrect gravatars?

  3. Ironclad360
    Member
    Posted 2 years ago #

    At the time of my original post, all admin users were displaying the default gravatar when viewing the post edit screen.

    However, I just rolled back and tested again in Chrome and Firefox and, you are correct, they do seem to be displaying. Perhaps a glitch in their system or cache issue at the time? Trust me, I tested and tested and tested and they wouldn't display.

    So, either way appears to work (but .jpg is optional anyway according to the original author).

    Thanks for posting back on this and my apologies. Whatever the issue was, it's not an issue anymore.

    ... gotta love it when that happens.

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    Cool, glad to hear it worked out :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic