mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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:
@@ -3395,7 +3395,7 @@ function &get_pages($args = '') {
|
||||
foreach ( $post_authors as $post_author ) {
|
||||
//Do we have an author id or an author login?
|
||||
if ( 0 == intval($post_author) ) {
|
||||
$post_author = get_userdatabylogin($post_author);
|
||||
$post_author = get_user_by('login', $post_author);
|
||||
if ( empty($post_author) )
|
||||
continue;
|
||||
if ( empty($post_author->ID) )
|
||||
|
||||
Reference in New Issue
Block a user