Make WordPress Core

Changeset 38824


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

Multisite: Replace get_blog_details() with get_site() in network admin screens.

Props iamfriendly.
See #37102.
Fixes #38349.

Location:
trunk/src/wp-admin/network
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-info.php

    r38721 r38824  
    3838}
    3939
    40 $details = get_blog_details( $id );
     40$details = get_site( $id );
    4141if ( ! $details ) {
    4242    wp_die( __( 'The requested site does not exist.' ) );
     
    8585    }
    8686
    87     $existing_details = get_blog_details( $id, false );
     87    $existing_details = get_site( $id );
    8888    $blog_data_checkboxes = array( 'public', 'archived', 'spam', 'mature', 'deleted' );
    8989    foreach ( $blog_data_checkboxes as $c ) {
     
    9898
    9999    // Maybe update home and siteurl options.
    100     $new_details = get_blog_details( $id, false );
     100    $new_details = get_site( $id );
    101101
    102102    $old_home_url = trailingslashit( esc_url( get_option( 'home' ) ) );
  • trunk/src/wp-admin/network/site-settings.php

    r38721 r38824  
    3636    wp_die( __('Invalid site ID.') );
    3737
    38 $details = get_blog_details( $id );
     38$details = get_site( $id );
    3939if ( ! $details ) {
    4040    wp_die( __( 'The requested site does not exist.' ) );
  • trunk/src/wp-admin/network/site-themes.php

    r38721 r38824  
    5959$wp_list_table->prepare_items();
    6060
    61 $details = get_blog_details( $id );
     61$details = get_site( $id );
    6262if ( ! $details ) {
    6363    wp_die( __( 'The requested site does not exist.' ) );
  • trunk/src/wp-admin/network/site-users.php

    r38721 r38824  
    5252    wp_die( __('Invalid site ID.') );
    5353
    54 $details = get_blog_details( $id );
     54$details = get_site( $id );
    5555if ( ! $details ) {
    5656    wp_die( __( 'The requested site does not exist.' ) );
  • trunk/src/wp-admin/network/sites.php

    r38814 r38824  
    9292        }
    9393
    94         $site_details = get_blog_details( $id );
     94        $site_details = get_site( $id );
    9595        $site_address = untrailingslashit( $site_details->domain . $site_details->path );
    9696
Note: See TracChangeset for help on using the changeset viewer.