From 844056354bf578615a36dd5cffb2eed0e9468709 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 26 Jan 2010 17:12:38 +0000 Subject: [PATCH] Deprecate get_current_user_id(). see #11644 git-svn-id: http://svn.automattic.com/wordpress/trunk@12838 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-deprecated.php | 10 ++++++++++ wp-includes/ms-functions.php | 6 ------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/wp-includes/ms-deprecated.php b/wp-includes/ms-deprecated.php index b35260349f..6b7534c419 100644 --- a/wp-includes/ms-deprecated.php +++ b/wp-includes/ms-deprecated.php @@ -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; +} + ?> \ No newline at end of file diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 574b6fdefd..08f97f4569 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -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. *