Automattic / Co-Authors-Plus

Multiple bylines and Guest Authors for WordPress
https://wordpress.org/plugins/co-authors-plus/
GNU General Public License v2.0
290 stars 205 forks source link

fix: Make CoAuthors_Plus::get_coauthor_by() compatible with unicode author usernames #909

Closed malhusseiny closed 1 year ago

malhusseiny commented 1 year ago

Currently CoAuthors_Plus::get_coauthor_by() fails to retrieve guest authors whose "user_login" names contains non-ascii characters. Those user_logins are effectively slugs so they are stored in the database url-encoded, and thus should be compared against a url-encoded version of the user_login if they are to be found.