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:
parent
29616c3ad9
commit
127b36e064
|
@ -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