Make WordPress Core

Ticket #38351: 38351.2.diff

File 38351.2.diff, 1.2 KB (added by flixos90, 7 years ago)
  • src/wp-includes/ms-blogs.php

     
    3838 * @return string Full URL of the blog if found. Empty string if not.
    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 ) ) {
    4444                return '';
     
    266266                $blog_id = get_current_blog_id();
    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
    272272                // when the blog has been previously cached as
     
    310310        if ( is_object($details) )
    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;
    316316
     
    10381038function get_blog_status( $id, $pref ) {
    10391039        global $wpdb;
    10401040
    1041         $details = get_blog_details( $id, false );
     1041        $details = get_site( $id );
    10421042        if ( $details )
    10431043                return $details->$pref;
    10441044