* Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
*
* @since MU
- * @deprecated 3.1.0 Use get_blog_details()
- * @see get_blog_details()
+ * @deprecated 3.1.0 Use get_site()
+ * @see get_site()
*
- * @return int Current site ID.
+ * @return WP_Site Current site object.
*/
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( $GLOBALS['current_site']->blog_id );
+ return get_site( get_network()->site_id );
}
/**