Deprecate get_user_details(). see #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@12839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-01-26 17:16:49 +00:00
parent 844056354b
commit 8d48c939fa
2 changed files with 9 additions and 6 deletions

View File

@ -101,4 +101,13 @@ function get_current_user_id() {
return $current_user->ID;
}
/**
* @deprecated 3.0
*/
function get_user_details( $username ) {
_deprecated_function( __FUNCTION__, '3.0', 'get_user_by()' );
return get_user_by('login', $username);
}
?>

View File

@ -93,12 +93,6 @@ function get_admin_users_for_domain( $sitedomain = '', $path = '' ) {
return false;
}
// @todo Use get_user_by() and deprecate.
function get_user_details( $username ) {
global $wpdb;
return $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_login = %s", $username) );
}
function is_main_blog() {
global $current_blog, $current_site;
if ( $current_blog->domain == $current_site->domain && $current_blog->path == $current_site->path )