(int)er the dragon.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -242,7 +242,7 @@ case 'register' :
|
||||
if ( empty( $errors ) ) {
|
||||
$user_pass = substr( md5( uniqid( microtime() ) ), 0, 7);
|
||||
|
||||
$user_id = wp_create_user( $user_login, $user_pass, $user_email );
|
||||
$user_id = (int) wp_create_user( $user_login, $user_pass, $user_email );
|
||||
if ( !$user_id )
|
||||
$errors['registerfail'] = sprintf(__('<strong>ERROR</strong>: Couldn’t register you... please contact the <a href="mailto:%s">webmaster</a> !'), get_option('admin_email'));
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user