Return ID not user_login.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a8652d0823
commit
cbb50041a8
|
@ -5,7 +5,7 @@ function username_exists( $username ) {
|
||||||
$username = sanitize_user( $username );
|
$username = sanitize_user( $username );
|
||||||
$user = get_userdatabylogin($username);
|
$user = get_userdatabylogin($username);
|
||||||
if ( $user )
|
if ( $user )
|
||||||
return $user->user_login;
|
return $user->ID;
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue