[wp-trac] [WordPress Trac] #17967: Ignoring the user ID in wp_create_user
WordPress Trac
wp-trac at lists.automattic.com
Sun Jul 3 11:48:40 UTC 2011
#17967: Ignoring the user ID in wp_create_user
-------------------------------+------------------------------
Reporter: mostafa.s1990 | Owner: Mostafa Soufi
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.1.4
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by dd32):
check to see if the user exists before creating a user:
`username_exists($username)`
I cant reproduce this however.
{{{
this:
var_dump( wp_create_user('admin', 'password', 'test2 at localhost') );
results in:
object(WP_Error)[104]
public 'errors' =>
array
'existing_user_login' =>
array
0 => string 'This username is already registered.' (length=36)
public 'error_data' =>
array
empty
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17967#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list