mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user