From 32fce2093c931283cde5fec0210ac59807c75102 Mon Sep 17 00:00:00 2001 From: jeremyfelt Date: Tue, 25 Oct 2016 06:01:03 +0000 Subject: [PATCH] Multisite: Replace `get_blog_details()` with `get_site()` in `is_user_member_of_blog()`. Props flixos90. Fixes #38358. git-svn-id: https://develop.svn.wordpress.org/trunk@38905 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 22c2c1ea1d..734d26e0ff 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -703,7 +703,7 @@ function is_user_member_of_blog( $user_id = 0, $blog_id = 0 ) { $user_id = get_current_user_id(); } - // Technically not needed, but does save calls to get_blog_details and get_user_meta + // Technically not needed, but does save calls to get_site and get_user_meta // in the event that the function is called when a user isn't logged in if ( empty( $user_id ) ) { return false; @@ -722,7 +722,7 @@ function is_user_member_of_blog( $user_id = 0, $blog_id = 0 ) { $blog_id = get_current_blog_id(); } - $blog = get_blog_details( $blog_id ); + $blog = get_site( $blog_id ); if ( ! $blog || ! isset( $blog->domain ) || $blog->archived || $blog->spam || $blog->deleted ) { return false;