WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11358 closed defect (bug) (duplicate)

wp_insert_user() does not update display name in user comments

Reported by: k_nitin_r Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.6
Component: Comments Keywords: has-patch, wp_insert_user, wp_update_user
Focuses: Cc:

Description

In WordPress 2.8.6, and in at least some of the older versions, changes to the display name of author are not reflected in the user comments.

The display name in the comments is also expected to change as a result of the user's change to his/her display name.

I understand this would result in updating a large number of rows, but this operation can be performed only when a change in the display name occurs - this is possible because we have access to both the old user data and the new user data.

Attachments (1)

update-name-in-comment-with-display-name.patch (930 bytes) - added by k_nitin_r 5 years ago.
Changes required in wp-includes/registration.php to accomplish the desired result

Download all attachments as: .zip

Change History (5)

@k_nitin_r5 years ago

Changes required in wp-includes/registration.php to accomplish the desired result

comment:1 @k_nitin_r5 years ago

  • Keywords has-patch wp_insert_user added

comment:2 @k_nitin_r5 years ago

  • Keywords wp_update_user added

When I said "changes to the display name of author are not reflected in the user comments", I meant "changes to the display name of a user are not reflected in the user comments".

comment:3 @Denis-de-Bernardy5 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This idea has been discussed multiple times in trac, and always dismissed as wontfix. (Please see closed tickets in the Comments component for details.)

comment:4 @apljdi5 years ago

This one does not seem to have been dismissed. Its set for WP 3.0. I'm moving my thoughts on this to that thread.

Note: See TracTickets for help on using tickets.