Deprecate get_current_user_id(). see #11644

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

View File

@ -91,4 +91,14 @@ text-align: center;
}
endif;
/**
* @deprecated 3.0
*/
function get_current_user_id() {
_deprecated_function( __FUNCTION__, '3.0', '' );
global $current_user;
return $current_user->ID;
}
?>

View File

@ -249,12 +249,6 @@ function update_blog_details( $blog_id, $details = array() ) {
return true;
}
// @todo move to user.php
function get_current_user_id() {
global $current_user;
return $current_user->ID;
}
/**
* Retrieve option value based on setting name and blog_id.
*