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:
parent
e8ada723f0
commit
844056354b
|
@ -91,4 +91,14 @@ text-align: center;
|
||||||
}
|
}
|
||||||
endif;
|
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;
|
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.
|
* Retrieve option value based on setting name and blog_id.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue