Make WordPress Core


Ignore:
Timestamp:
10/19/2016 06:01:22 AM (8 years ago)
Author:
jeremyfelt
Message:

Multisite: Replace get_blog_details() in wp-admin/my-sites.php with get_site().

Props spacedmonkey, iamfriendly.
See #37102.
Fixes #38348.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/my-sites.php

    r38721 r38823  
    2424    check_admin_referer( 'update-my-sites' );
    2525
    26     $blog = get_blog_details( (int) $_POST['primary_blog'] );
     26    $blog = get_site( (int) $_POST['primary_blog'] );
    2727    if ( $blog && isset( $blog->domain ) ) {
    2828        update_user_option( $current_user->ID, 'primary_blog', (int) $_POST['primary_blog'], true );
Note: See TracChangeset for help on using the changeset viewer.