mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
phpdoc and cleanup. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12826 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1608,13 +1608,13 @@ function get_user_id_from_string( $string ) {
|
||||
|
||||
$user_id = 0;
|
||||
if ( is_email( $string ) ) {
|
||||
$user = get_user_by_email($string);
|
||||
$user = get_user_by('email', $string);
|
||||
if ( $user )
|
||||
$user_id = $user->ID;
|
||||
} elseif ( is_numeric( $string ) ) {
|
||||
$user_id = $string;
|
||||
} else {
|
||||
$user = get_userdatabylogin($string);
|
||||
$user = get_user_by('login', $string);
|
||||
if ( $user )
|
||||
$user_id = $user->ID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user