WordPress.org

Ready to get started?Download WordPress

Forums

Changing the display name does not update comment author name (14 posts)

  1. k_nitin_r
    Member
    Posted 4 years ago #

    Hi!

    I've noticed that changing a user's display name does not seem to update that user's name in his/her comments. I looked through the source code and sure enough, there didn't seem to be any updates to the comments table in the wp_insert_user function, which is called by the wp_update_user function (both are in the wp-includes/registration.php file).

    I figured this may have been something that the developers overlooked so I issued a patch and posted it to Trac (Ticket #11358):

    Ticket #11358: wp_insert_user() does not update display name in user comments
    http://core.trac.wordpress.org/ticket/11358

    I'm looking forward to any comments that other developers/administrators have about this behavior of WordPress and the submitted patch.

  2. s_ha_dum
    Member
    Posted 4 years ago #

    Take a look at this trac.

  3. s_ha_dum
    Member
    Posted 4 years ago #

    In fact, get involved in that trac if this issue means anything to you. When I first posted the link there was a fix set for milestone 3.0. Now that milestone has been removed and the trac tagged 'closed'.

  4. chartinael
    Member
    Posted 4 years ago #

    I noticed that too and would appreciate a solution.

  5. s_ha_dum
    Member
    Posted 4 years ago #

    So jump in chartinael :). You can login with the same username and password as here.

  6. chartinael
    Member
    Posted 4 years ago #

    Well, I am an absolute neophyte and wouldn't know what to do ... but I noticed the issue and thought, oh darn, now I have to change the name manually on all 35 comments or the like.

  7. s_ha_dum
    Member
    Posted 4 years ago #

    I'm happy to say that things are looking up. It seems that I made a good case. It got reopened. :)

  8. chartinael
    Member
    Posted 4 years ago #

    Thank you ... does that mean some competent person will look into the issue?

  9. s_ha_dum
    Member
    Posted 4 years ago #

    I've actually kinda committed myself to writing a patch. Whether that means that "some competent person will look into the issue" is something of a judgment call. No guarantee that the patch will get through the review process, though.

  10. s_ha_dum
    Member
    Posted 4 years ago #

    I added a patch, if anyone is following this.

  11. chartinael
    Member
    Posted 4 years ago #

    what does that mean? will it be incorporated in the next release or do I need to download anything?

  12. s_ha_dum
    Member
    Posted 4 years ago #

    It means that I submitted code that will hopefully be incorporated into a future release-- no guarantees at this point though.

  13. chartinael
    Member
    Posted 4 years ago #

    Oh, ok. Well, thank you for your time and effort anyhow.

    PS. Do you think, I can safely remove rss items in options table?

  14. s_ha_dum
    Member
    Posted 4 years ago #

    We'll see how it goes. It has a milestone set at 3.0 so tentatively it should show up there, assuming it passes debugging and such.

    You can remove the rss items but they'll repopulate if you do.

Topic Closed

This topic has been closed to new replies.

About this Topic