Wrap get_user_by() in function_exists check. Props alexrabe. fixes #9617

git-svn-id: http://svn.automattic.com/wordpress/trunk@11033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-21 20:27:22 +00:00
parent 6d49900723
commit 35e6b4c698
1 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ function get_userdata( $user_id ) {
} }
endif; endif;
if ( !function_exists('get_user_by') ) :
/** /**
* Retrieve user info by a given field * Retrieve user info by a given field
* *
@ -182,6 +183,7 @@ function get_user_by($field, $value) {
return $user; return $user;
} }
endif;
if ( !function_exists('get_userdatabylogin') ) : if ( !function_exists('get_userdatabylogin') ) :
/** /**