Making WordPress.org

Opened 5 years ago

Last modified 2 years ago

#4644 new task (blessed)

User profiles: Make sure all users have a displayname defined

Reported by: tobifjellner's profile tobifjellner Owned by:
Milestone: Priority: normal
Component: Profiles Keywords: reporter-feedback
Cc:

Description

As far as I know, nowadays the system doesn't allow a user to clear out the displayname, but some profiles on wp-org don't have any displayname defined.

In some views this makes it harder to see the username of someone who has posted or commented.

I suggest that someone, as a one-time action, should search for all user profiles that have an empty displayname, and set it to the username.

Change History (8)

#1 @dd32
5 years ago

For reference, on WordPress.org there's over 600,000 users who don't have a display_name set (out of 17+ million - user ID's aren't secret).

While it looks like it's the earlier users, there's a registered user as recently as 2019-07-23 who has a blank display name, although that just looks like because the HTML junk added to their Name field probably sanitized out to a blank string.

#2 @coffee2code
4 years ago

  • Keywords reporter-feedback added

In some views this makes it harder to see the username of someone who has posted or commented.

@tobifjellner: Can you provide an example of this happening in a view?

#3 @tobifjellner
4 years ago

@coffee2code I will, next time I stumble upon one such profile. (whenever I see one, I usually ask someone to fix that profile.)

#4 @dd32
4 years ago

In 10238:

Add a MU plugin to fill in users empty display_name fields when possible.

Some users on WordPress.org have empty display_name fields due to bugs in sanitization of user profile saving.

Fixes #5416.
See #4644.

#5 @dd32
2 years ago

#6502 was marked as a duplicate.

#6 @dd32
2 years ago

In 12103:

Support Forums: Ensure that reported topics have a value displayed for who reported a topic.

This fixes get_the_author_meta( 'display_name' ) not returning a value when the WP_User object has an empty display name.

See #4644.
Fixes #6500.

#7 @dd32
2 years ago

Just noting that the last 10 users registered that have a blank display_name are 2019~2020 dated, and in each case have a First or Last name set that contains UTF8 characters that appear garbled.

I can't reproduce creating or updating a user in such a way that creates a blank display_name.. it might be time to do a database back-fill and see if this issue appears again.

#8 @dd32
2 years ago

In 12104:

User Tweaks: Aparently we have a number of locations where a $user_id which doesn't exist is the author of a comment/post/etc, and additionally, we often call get_the_author_meta() without a user context.

See #4644.

Note: See TracTickets for help on using tickets.