mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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: https://develop.svn.wordpress.org/trunk@19209 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0890ecf471
commit
e263cfc8b5
@ -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 ) )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user