[wp-trac] [WordPress Trac] #39370: wp_insert_user() appends suffix to nicename when updating already existing user
WordPress Trac
noreply at wordpress.org
Mon Jan 27 12:01:52 UTC 2020
#39370: wp_insert_user() appends suffix to nicename when updating already existing
user
-------------------------------+---------------------
Reporter: alfhen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.4
Component: Users | Version: 4.6.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+---------------------
Changes (by donmhico):
* keywords: => reporter-feedback
Comment:
Hello @alfhen,
Welcome in WordPress trac! I know that this ticket is quite old now but
I'm having difficulties to reproduce the problem.
Using `wp_insert_user()` without `ID` param and with `user_nicename` that
already exists will create a new user with suffixed `user_nicename`.
Using `wp_insert_user()` with `ID` and with `user_nicename` that's the
same as the current user's `user_nicename` will update the user info
properly. `user_nicename` isn't suffixed.
In short, I can't seem to find a way to use `wp_insert_user()` that
updates the an existing user that also suffixed the `user_nicename`. If
you can give the exact `wp_insert_user()` code you use to produce the
problem, it will definitely help.
Thank you!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39370#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list