diff --git src/wp-admin/my-sites.php src/wp-admin/my-sites.php
index 54f5bc4..8f94190 100644
|
|
|
$updated = false; |
| 23 | 23 | if ( 'updateblogsettings' == $action && isset( $_POST['primary_blog'] ) ) { |
| 24 | 24 | check_admin_referer( 'update-my-sites' ); |
| 25 | 25 | |
| 26 | | $blog = get_blog_details( (int) $_POST['primary_blog'] ); |
| | 26 | $site_id = (int) $_POST['primary_blog']; |
| | 27 | $blog = get_site( $site_id ); |
| 27 | 28 | if ( $blog && isset( $blog->domain ) ) { |
| 28 | 29 | update_user_option( $current_user->ID, 'primary_blog', (int) $_POST['primary_blog'], true ); |
| 29 | 30 | $updated = true; |