is_user_member_of_blog() [no args] should return true for logged in users on single site. $wpdb->blogid is 0, but the current blog ID isn't. Fixes #19160.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2011-11-07 23:07:07 +00:00
parent e0b10ef8a7
commit 4cf30f3410
1 changed files with 2 additions and 4 deletions

View File

@ -736,10 +736,8 @@ function is_user_member_of_blog( $user_id = 0, $blog_id = 0 ) {
if ( empty( $user_id ) )
$user_id = get_current_user_id();
if ( empty( $blog_id ) ) {
global $wpdb;
$blog_id = $wpdb->blogid;
}
if ( empty( $blog_id ) )
$blog_id = get_current_blog_id();
$blogs = get_blogs_of_user( $user_id );
if ( is_array( $blogs ) )