Co-Authors-Plus icon indicating copy to clipboard operation
Co-Authors-Plus copied to clipboard

Fix wrong avatar url getting returned when a users id matches a post id

Open ivanlopez opened this issue 5 years ago • 0 comments

This fixes a bug where the wrong image was getting returned for WordPress users that had the same ID as post ID. If the post had a featured image then it was getting returned as the user's avatar. This adds an additional check to make sure that the ID belongs to a post with a post type of guest-author.

ivanlopez avatar Jul 16 '19 12:07 ivanlopez