[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 13:07:33 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 mc256):

 Replying to [comment:4 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).

 This is a ticket posted almost two years ago. LOL

 I wrote a plugin that allows user uploading the avatar if they want. This
 inconsistency really breaks my plugin. I think it should be more accurate.
 You should not assume that the avatar is based on the email address.

 Thank you for replying my ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40518#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list