From 9ae33a3be4dea5ff2ea675a64da59dccba5cb23f Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Tue, 25 Oct 2016 05:04:37 +0000 Subject: [PATCH] Multisite: Replace `get_blog_details()` with `get_site()` in `get_dashboard_blog()`. Props dipesh.kakadiya. Fixes #38353. git-svn-id: https://develop.svn.wordpress.org/trunk@38902 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-deprecated.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/ms-deprecated.php b/src/wp-includes/ms-deprecated.php index 930c36c2c6..568e8d1cdc 100644 --- a/src/wp-includes/ms-deprecated.php +++ b/src/wp-includes/ms-deprecated.php @@ -18,17 +18,18 @@ * Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin. * * @since MU - * @deprecated 3.1.0 Use get_blog_details() + * @deprecated 3.1.0 Use get_site() * @see get_blog_details() * * @return int Current site ID. */ function get_dashboard_blog() { _deprecated_function( __FUNCTION__, '3.1.0' ); - if ( $blog = get_site_option( 'dashboard_blog' ) ) - return get_blog_details( $blog ); + if ( $blog = get_site_option( 'dashboard_blog' ) ) { + return get_site( $blog ); + } - return get_blog_details( get_network()->site_id ); + return get_site( get_network()->site_id ); } /**