Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119838

Derk-Jan on "[Plugin: WordPress Social Login] Fix for non-registered users using get_avatar"

$
0
0

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/


Viewing all articles
Browse latest Browse all 119838