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

  1. Derk-Jan
    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.


  2. Miled
    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