[wp-meta] [Making WordPress.org] #4093: Check for `user_nicename` when meetup organisers are added
Making WordPress.org
noreply at wordpress.org
Tue Jan 22 15:25:53 UTC 2019
#4093: Check for `user_nicename` when meetup organisers are added
-------------------------------------+-------------------------
Reporter: hlashbrooke | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: WordCamp Site & Plugins | Keywords: needs-patch
-------------------------------------+-------------------------
When we add the usernames of meetup group organisers in the meetup tracker
(https://central.wordcamp.org/wp-admin/edit.php?post_type=wp_meetup), the
system checks if it is a valid username by checking against the
`user_login` field. This is fine in most cases, but in some instances the
username supplied is actually the `user_nicename` as it is copied from the
profile URL.
When that happens, the only solution is to ask in the `#meta` channel on
Slack if someone can help with providing the username from the given
nicename. That is obviously not ideal.
The simplest solution here would be to add a secondary check to match the
provided username against the `user_nicename` field if the initial check
against the `user_login` field fails. This check is only run at the time
that the meetup listing is saved, so any processing overhead created by an
additional check wouldn't be a problem.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4093>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list