[wp-trac] [WordPress Trac] #40518: multisite users table should use user's ID to get the avatar
WordPress Trac
noreply at wordpress.org
Fri Mar 15 11:07:44 UTC 2019
#40518: multisite users table should use user's ID to get the avatar
-------------------------+------------------------------
Reporter: mc256 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 4.7.4
Severity: normal | Resolution:
Keywords: | Focuses: multisite
-------------------------+------------------------------
Comment (by keraweb):
In fact, looking at the code in `get_avatar_data`, it looks like using an
email address is even more logical since that doesn't require querying a
user at all.
The first parameter can also be the user object itself, or a post /
comment object where it will look for the author so the usage of this
function differs a lot within the WP core base. In the end all it needs to
get the avatar is the email address, nothing more (since gravatar is based
on the email address).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40518#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list