mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
+1
-1
@@ -113,7 +113,7 @@ for ( $i = 1; $i <= $count; $i++ ) {
|
||||
$author = sanitize_email($author);
|
||||
if ( is_email($author) ) {
|
||||
echo '<p>' . sprintf(__('Author is %s'), $author) . '</p>';
|
||||
$userdata = get_user_by_email($author);
|
||||
$userdata = get_user_by('email', $author);
|
||||
if ( empty($userdata) ) {
|
||||
$author_found = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user