From 9543b9e25926fb0d216f490e92b9a0007be9d8ba Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 25 Oct 2016 18:49:03 +0000 Subject: [PATCH] Multisite: Replace `get_blog_details()` in `wp-includes/ms-blogs.php` with `get_site()`. Props flixos90. See #37102. Fixes #38351. git-svn-id: https://develop.svn.wordpress.org/trunk@38915 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-blogs.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php index b399cfaf9c..46a3961c8f 100644 --- a/src/wp-includes/ms-blogs.php +++ b/src/wp-includes/ms-blogs.php @@ -38,7 +38,7 @@ function wpmu_update_blogs_date() { * @return string Full URL of the blog if found. Empty string if not. */ function get_blogaddress_by_id( $blog_id ) { - $bloginfo = get_blog_details( (int) $blog_id ); + $bloginfo = get_site( (int) $blog_id ); if ( empty( $bloginfo ) ) { return ''; @@ -266,7 +266,7 @@ function refresh_blog_details( $blog_id = 0 ) { $blog_id = get_current_blog_id(); } - $details = get_blog_details( $blog_id, false ); + $details = get_site( $blog_id ); if ( ! $details ) { // Make sure clean_blog_cache() gets the blog ID // when the blog has been previously cached as @@ -310,7 +310,7 @@ function update_blog_details( $blog_id, $details = array() ) { if ( is_object($details) ) $details = get_object_vars($details); - $current_details = get_blog_details($blog_id, false); + $current_details = get_site( $blog_id ); if ( empty($current_details) ) return false; @@ -1038,7 +1038,7 @@ function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) { function get_blog_status( $id, $pref ) { global $wpdb; - $details = get_blog_details( $id, false ); + $details = get_site( $id ); if ( $details ) return $details->$pref;