[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:42:06 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 mostafa.s1990):
{{{
// variable for test
$user_name = $_POST['author_user_name'];
$password = wp_generate_password();
$email = $_POST['author_user_email'];
// function test
$user_id = wp_create_user($user_name, $password,
$email) ;
// check error
if ( is_wp_error($user_id) ){
$register_error = $user_id->get_error_message();
echo $register_error;
} else {
_e('Thankd!');
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17967#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list