From f2ad57944023b8eaa178bcc116239269a00a79ad Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 19 Oct 2016 06:02:29 +0000 Subject: [PATCH] Multisite: Replace `get_blog_details()` in `wp-admin/my-sites.php` with `get_site()`. Props spacedmonkey, iamfriendly. See #37102. Fixes #38348. Built from https://develop.svn.wordpress.org/trunk@38823 git-svn-id: http://core.svn.wordpress.org/trunk@38766 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/my-sites.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/my-sites.php b/wp-admin/my-sites.php index 54f5bc4849..2478b39b12 100644 --- a/wp-admin/my-sites.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 30b8d795c0..9dc62fe7a1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38822'; +$wp_version = '4.7-alpha-38823'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.