Deprecate get_current_user_id(). see #11644

git-svn-id: https://develop.svn.wordpress.org/trunk@12838 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-01-26 17:12:38 +00:00
parent 29616c3ad9
commit 127b36e064
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.
*