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:
parent
325c7411fc
commit
f2ad579440
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue