Wrap get_user_by() in function_exists check. Props alexrabe. fixes #9617
git-svn-id: https://develop.svn.wordpress.org/trunk@11033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0692a7bd20
commit
eef3fe8028
@ -139,6 +139,7 @@ function get_userdata( $user_id ) {
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( !function_exists('get_user_by') ) :
|
||||
/**
|
||||
* Retrieve user info by a given field
|
||||
*
|
||||
@ -182,6 +183,7 @@ function get_user_by($field, $value) {
|
||||
|
||||
return $user;
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( !function_exists('get_userdatabylogin') ) :
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user