mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Deprecate get_userdatabylogin() and get_user_by_email(). Props scribu. fixes #18333
git-svn-id: https://develop.svn.wordpress.org/trunk@18513 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -447,7 +447,7 @@ class WP_User {
|
||||
if ( ! empty( $id ) )
|
||||
$this->data = get_userdata( $id );
|
||||
else
|
||||
$this->data = get_userdatabylogin( $name );
|
||||
$this->data = get_user_by('login', $name );
|
||||
|
||||
if ( empty( $this->data->ID ) )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user