From 9bcb0fcc086b63b4216db4ac6c9db356bcc31acf Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Sat, 12 Nov 2011 20:52:56 +0000 Subject: [PATCH] Default arguments for is_user_member_of_blog() can now be used. See #19122, #19160. git-svn-id: https://develop.svn.wordpress.org/trunk@19265 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 3210fc3a58..f7f74f1d10 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -208,7 +208,7 @@ function wp_admin_bar_site_menu( $wp_admin_bar ) { return; // Show only when the user is a member of this site, or they're a super admin. - if ( ! is_user_member_of_blog( get_current_user_id(), get_current_blog_id() ) && ! is_super_admin() ) + if ( ! is_user_member_of_blog() && ! is_super_admin() ) return; $blogname = get_bloginfo('name');