-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Override WordPress avatars" option doesn't appear to work with comments #355
Comments
Here's the fix: /plugins/auth0/WP_Auth0.php Line 160, add:
The issue is that the comments version of this filter sends the full WP_Comment object as the second param to get_avatar, and the code was assuming it would always be an integer user ID. Instead, the user ID is a property of the object. |
From /wp-includes/pluggable.php L:2550: "The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, user email, WP_User object, WP_Post object, or WP_Comment object." Assigning to myself to address in the next next release. |
…s besides a user ID (WP_User, WP_Comment, WP_Post, email); fixes #355
…s besides a user ID (WP_User, WP_Comment, WP_Post, email); fixes #355
…s besides a user ID (WP_User, WP_Comment, WP_Post, email); fixes #355
…s besides a user ID (WP_User, WP_Comment, WP_Post, email); fixes #355
…s besides a user ID (WP_User, WP_Comment, WP_Post, email); fixes #355
…s besides a user ID (WP_User, WP_Comment, WP_Post, email); fixes #355
Even when the "Override WordPress avatars" in the Features tab is turned on, the picture for the comments section, etc still seem to use Gravatar instead of user's picture. However the user's profile page (in admin panel) shows the correct picture.
The text was updated successfully, but these errors were encountered: