WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. PenelopeGlamour
    Member
    Posted 10 months 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

    http://wordpress.org/plugins/username-changer/

  2. R J
    Member
    Posted 10 months ago #

    Yes, this work fine now !

  3. Dan Griffiths
    Member
    Posted 4 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.