Make WordPress Core


Ignore:
Timestamp:
10/25/2016 06:49:03 PM (10 years ago)
Author:
jeremyfelt
Message:

Multisite: Replace get_blog_details() in wp-includes/ms-blogs.php with get_site().

Props flixos90.
See #37102.
Fixes #38351.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r38814 r38915  
    3939 */
    4040function get_blogaddress_by_id( $blog_id ) {
    41         $bloginfo = get_blog_details( (int) $blog_id );
     41        $bloginfo = get_site( (int) $blog_id );
    4242
    4343        if ( empty( $bloginfo ) ) {
     
    267267        }
    268268
    269         $details = get_blog_details( $blog_id, false );
     269        $details = get_site( $blog_id );
    270270        if ( ! $details ) {
    271271                // Make sure clean_blog_cache() gets the blog ID
     
    311311                $details = get_object_vars($details);
    312312
    313         $current_details = get_blog_details($blog_id, false);
     313        $current_details = get_site( $blog_id );
    314314        if ( empty($current_details) )
    315315                return false;
     
    10391039        global $wpdb;
    10401040
    1041         $details = get_blog_details( $id, false );
     1041        $details = get_site( $id );
    10421042        if ( $details )
    10431043                return $details->$pref;
Note: See TracChangeset for help on using the changeset viewer.