From eef3fe8028fe137dda6282a9e6c5207d4dc49c32 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 21 Apr 2009 20:27:22 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index ee6630046b..a8a10cc1c4 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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') ) : /**