From aa3662127f79fa5b98d3123bc255083922af5798 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 19 Oct 2016 06:01:22 +0000 Subject: [PATCH] Multisite: Replace `get_blog_details()` in `wp-admin/my-sites.php` with `get_site()`. Props spacedmonkey, iamfriendly. See #37102. Fixes #38348. git-svn-id: https://develop.svn.wordpress.org/trunk@38823 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/my-sites.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/my-sites.php b/src/wp-admin/my-sites.php index 54f5bc4849..2478b39b12 100644 --- a/src/wp-admin/my-sites.php +++ b/src/wp-admin/my-sites.php @@ -23,7 +23,7 @@ $updated = false; if ( 'updateblogsettings' == $action && isset( $_POST['primary_blog'] ) ) { check_admin_referer( 'update-my-sites' ); - $blog = get_blog_details( (int) $_POST['primary_blog'] ); + $blog = get_site( (int) $_POST['primary_blog'] ); if ( $blog && isset( $blog->domain ) ) { update_user_option( $current_user->ID, 'primary_blog', (int) $_POST['primary_blog'], true ); $updated = true;