WordPress.org

Forums

WordPress Social Login
Fix for non-registered users using get_avatar (2 posts)

  1. Derk-Jan
    Member
    Posted 2 years ago #

    Calling get_avatar on an not registered user (for example newsletter plugin who want to show an gravatar) will yield an error.

    In plugin.ui (includes folder) add on line 336:
    $user_id = -1;

    This will prevent an error message user_id not defined when you try to use get_avatar on an not existing user.

    http://wordpress.org/extend/plugins/wordpress-social-login/

  2. Miled
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks Derk-Jan! I'll look into this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Social Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic