summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/wpmu-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-07 10:41:30 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-07 10:41:30 +0000
commit78ccea48f24cf4c7688c806c12c85c9760cd3e64 (patch)
tree5b9e1ca0fda033e5394fba6980ff01f4098cc9a1 /wp-inst/wp-includes/wpmu-functions.php
parent28dab6f8454486477ff59bef27bbc2be4cd100d8 (diff)
downloadwordpress-mu-78ccea48f24cf4c7688c806c12c85c9760cd3e64.tar.gz
wordpress-mu-78ccea48f24cf4c7688c806c12c85c9760cd3e64.tar.xz
wordpress-mu-78ccea48f24cf4c7688c806c12c85c9760cd3e64.zip
Invites link near feedback form, but only if invites left
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@302 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/wpmu-functions.php')
-rw-r--r--wp-inst/wp-includes/wpmu-functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/wpmu-functions.php b/wp-inst/wp-includes/wpmu-functions.php
index 4fd6d2d..6b5982d 100644
--- a/wp-inst/wp-includes/wpmu-functions.php
+++ b/wp-inst/wp-includes/wpmu-functions.php
@@ -389,6 +389,14 @@ function get_blog_details( $id ) {
return $row;
}
+function get_current_user_id() {
+ global $wpdb;
+
+ $cookie_user_login = $_COOKIE[USER_COOKIE];
+ $user_login = sanitize_user( $cookie_user_login );
+ return $wpdb->get_var( "SELECT ID FROM $wpdb->users WHERE user_login = '$user_login'" );
+}
+
function is_site_admin( $user_login = '0' ) {
global $wpdb, $current_user;