Fix for non-registered users using get_avatar
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.
- The topic ‘Fix for non-registered users using get_avatar’ is closed to new replies.