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
This commit is contained in:
Jeremy Felt 2016-10-19 06:02:29 +00:00
parent 325c7411fc
commit f2ad579440
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.