mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-23 22:14:38 +00:00
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:
@@ -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') ) :
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user