WordPress.org

Support

Support » Plugins and Hacks » Username Changer » lillte bug (and solution) with change user_nicename

lillte bug (and solution) with change user_nicename

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘lillte bug (and solution) with change user_nicename’ is closed to new replies.
Skip to toolbar