You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a WP User and Guest Author share the same ID, the WP User can pick up the wrong avatar in the backend.
Steps to reproduce:
Start with a test site that has a Guest Author and WP User that share the same ID. If you don't already have one, the quickest way to recreate is:
Set up a new site.
Before adding/importing any posts, install CoAuthors Plus and create a Guest Author. Usually they will have an ID around 5-6. This is necessary because Guest Authors share the same ID pool as other post types.
Create 5-6 regular WP Users, until you have one whose ID matches your Guest Author.
Give your "ID twin" Guest Author an avatar.
You can also give your "ID twin" WP User an email address that's associated with a Gravatar, but it's not necessary.
View the user list under WP Admin > Users, or view the individual profile of your "ID twin" WP User. Note that the avatar its using is the one assigned to your Guest Author.
Screenshots
Guest author settings:
"ID twin" WP User on the Users screen:
Actual avatar the WP User should be using:
The text was updated successfully, but these errors were encountered:
Having this same issue and I think it's because the filter in filter_pre_get_avatar_url is assuming that the $id parameter sent is an Author ID, which is incorrect, I'm seeing the user ID there.
When a WP User and Guest Author share the same ID, the WP User can pick up the wrong avatar in the backend.
Steps to reproduce:
Screenshots
Guest author settings:
"ID twin" WP User on the Users screen:
Actual avatar the WP User should be using:
The text was updated successfully, but these errors were encountered: