Multisite: use get_current_site() instead of $GLOBALS['current_site'] (stop yelling!) in a few remaining spots.
See #37699. Built from https://develop.svn.wordpress.org/trunk@38458 git-svn-id: http://core.svn.wordpress.org/trunk@38399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -28,7 +28,7 @@ function get_dashboard_blog() {
|
||||
if ( $blog = get_site_option( 'dashboard_blog' ) )
|
||||
return get_blog_details( $blog );
|
||||
|
||||
return get_blog_details( $GLOBALS['current_site']->blog_id );
|
||||
return get_blog_details( get_current_site()->blog_id );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user