[wp-trac] [WordPress Trac] #61469: Display name doesn't update correctly when first and last name fields are cleared.

WordPress Trac noreply at wordpress.org
Wed Jun 19 23:03:29 UTC 2024


#61469: Display name doesn't update correctly when first and last name fields are
cleared.
--------------------------+-----------------------------
 Reporter:  lekiq         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  6.5.4
 Severity:  normal        |   Keywords:
  Focuses:  privacy       |
--------------------------+-----------------------------
 When a user fills out the "First Name" and "Last Name" fields in their
 profile and selects a display name option, the display name reflects the
 first and last names correctly. However, if the user later removes the
 values from the "First Name" and "Last Name" fields, the display name
 still displays the previously entered first and last names. The display
 name only updates correctly if the user also changes the "Display name
 publicly as" field. This behavior can be confusing and inconsistent.

 **Steps to Reproduce:**
 1. Go to the profile editing page.
 2. Enter values in the "First Name" and "Last Name" fields.
 3. Select a display name option that includes the first and last names.
 4. Save the changes.
 5. Remove the values from the "First Name" and "Last Name" fields.
 6. Observe that the display name still shows the previously entered first
 and last names.
 7. Change the "Display name publicly as" field to any other option and
 then back to the desired option.
 8. Save the changes.
 9. Observe that the display name now updates correctly.

 **Expected Behavior:**
 The display name should automatically update to reflect the cleared "First
 Name" and "Last Name" fields without requiring additional changes to the
 "Display name publicly as" field.

 **Actual Behavior:**
 The display name does not update and still shows the previous first and
 last names unless the "Display name publicly as" field is manually
 changed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61469>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list