Skip to content

Commit 9ae33a3

Browse files
committed
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
1 parent e6425b0 commit 9ae33a3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/wp-includes/ms-deprecated.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@
1818
* Dashboard blog functionality was removed in WordPress 3.1, replaced by the user admin.
1919
*
2020
* @since MU
21-
* @deprecated 3.1.0 Use get_blog_details()
21+
* @deprecated 3.1.0 Use get_site()
2222
* @see get_blog_details()
2323
*
2424
* @return int Current site ID.
2525
*/
2626
function get_dashboard_blog() {
2727
_deprecated_function( __FUNCTION__, '3.1.0' );
28-
if ( $blog = get_site_option( 'dashboard_blog' ) )
29-
return get_blog_details( $blog );
28+
if ( $blog = get_site_option( 'dashboard_blog' ) ) {
29+
return get_site( $blog );
30+
}
3031

31-
return get_blog_details( get_network()->site_id );
32+
return get_site( get_network()->site_id );
3233
}
3334

3435
/**

0 commit comments

Comments
 (0)