From 6a0ca394e851752addb41b5257ac4612d8cd79ee Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 25 Oct 2016 06:02:35 +0000 Subject: [PATCH] Multisite: Replace `get_blog_details()` with `get_site()` in `is_user_member_of_blog()`. Props flixos90. Fixes #38358. Built from https://develop.svn.wordpress.org/trunk@38905 git-svn-id: http://core.svn.wordpress.org/trunk@38848 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 22c2c1ea1d..734d26e0ff 100644 --- a/wp-includes/user.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 254cfd3f1c..14d921d962 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38904'; +$wp_version = '4.7-alpha-38905'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.