Username Changer
lillte bug (and solution) with change user_nicename (3 posts)

  1. PenelopeGlamour
    Posted 2 years ago #

    Hello there

    I was using this plugin for a few days and think that its work fine, but I found that the user_nicename dont change, which is mandatory to me because my users are created by theirs email. I look inside the code and find this:
    ` $q = $wpdb->prepare( "UPDATE $wpdb->users SET user_login = %s WHERE user_login = %s", $new_username, $current_username );

    $qnn = $wpdb->prepare( "UPDATE $wpdb->users SET user_nicename = %s WHERE user_login = %s", $new_username, $current_username );`
    BUT the second update really its not working, we already changed the current_username by the new_username at first update. I think that the second should be:
    $qnn = $wpdb->prepare( "UPDATE $wpdb->users SET user_nicename = %s WHERE user_login = %s", $new_username, $new_username );

    And , well, I've tested and works fine


  2. R J
    Posted 2 years ago #

    Yes, this work fine now !

  3. Dan Griffiths
    Posted 1 year ago #

    Sorry for the LONG delay... this is now fixed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Username Changer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.